2020-12-19 09:14:36 -05:00
|
|
|
{{define "component/rule"}}
|
2020-12-19 10:11:16 -05:00
|
|
|
<div class="ui tiny rule modal transition hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="header">{{tr "AddNotificationRule"}}</div>
|
2020-12-19 09:14:36 -05:00
|
|
|
<div class="content">
|
2020-12-19 10:11:16 -05:00
|
|
|
<form id="ruleForm" class="ui form">
|
2020-12-19 09:14:36 -05:00
|
|
|
<input type="hidden" name="ID">
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Name"}}</label>
|
2020-12-19 09:14:36 -05:00
|
|
|
<input type="text" name="Name">
|
|
|
|
</div>
|
|
|
|
<div class="secret field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Rules"}}</label>
|
2020-12-19 10:11:16 -05:00
|
|
|
<textarea name="RulesRaw"></textarea>
|
2020-12-19 09:14:36 -05:00
|
|
|
</div>
|
2022-04-14 15:13:53 -04:00
|
|
|
<div class="field">
|
2022-04-29 21:32:57 -04:00
|
|
|
<label>{{tr "NotificationMethodGroup"}}</label>
|
2022-04-14 22:56:04 -04:00
|
|
|
<input type="text" name="NotificationTag" placeholder="default">
|
2022-04-14 15:13:53 -04:00
|
|
|
</div>
|
2022-09-12 16:02:34 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "NotificationTriggerMode"}}</label>
|
|
|
|
<select name="TriggerMode" class="ui fluid dropdown">
|
|
|
|
<option value="0">{{tr "ModeAlwaysTrigger"}}</option>
|
|
|
|
<option value="1">{{tr "ModeOnetimeTrigger"}}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-09-13 23:32:15 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "FailTriggerTasks"}}</label>
|
|
|
|
<div class="ui fluid multiple tasks search selection dropdown">
|
|
|
|
<input type="hidden" name="FailTriggerTasksRaw">
|
|
|
|
<i class="dropdown icon 1"></i>
|
|
|
|
<div class="default text">{{tr "EnterIdAndNameToSearch"}}</div>
|
|
|
|
<div class="menu"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "RecoverTriggerTasks"}}</label>
|
|
|
|
<div class="ui fluid multiple tasks search selection dropdown">
|
|
|
|
<input type="hidden" name="RecoverTriggerTasksRaw">
|
|
|
|
<i class="dropdown icon 2"></i>
|
|
|
|
<div class="default text">{{tr "EnterIdAndNameToSearch"}}</div>
|
|
|
|
<div class="menu"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-12-19 09:14:36 -05:00
|
|
|
<div class="field">
|
2020-12-19 10:11:16 -05:00
|
|
|
<div class="ui rule-enable checkbox">
|
|
|
|
<input name="Enable" type="checkbox" tabindex="0" class="hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Enable"}}</label>
|
2020-12-19 09:14:36 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="ui negative button">{{tr "Cancel"}}</div>
|
|
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
2020-12-19 09:14:36 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|