前端更新: 匹配新的报警规则设置页面

This commit is contained in:
Akkia
2022-09-13 04:02:34 +08:00
parent 32d15e116e
commit 4f26f36c8e
4 changed files with 20 additions and 0 deletions

View File

@@ -16,6 +16,13 @@
<label>{{tr "NotificationMethodGroup"}}</label>
<input type="text" name="NotificationTag" placeholder="default">
</div>
<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>
<div class="field">
<div class="ui rule-enable checkbox">
<input name="Enable" type="checkbox" tabindex="0" class="hidden">

View File

@@ -58,6 +58,7 @@
<th>ID</th>
<th>{{tr "Name"}}</th>
<th>{{tr "NotificationMethodGroup"}}</th>
<th>{{tr "NotificationTriggerMode"}}</th>
<th>{{tr "Rules"}}</th>
<th>{{tr "Enable"}}</th>
<th>{{tr "Administration"}}</th>
@@ -69,6 +70,7 @@
<td>{{$rule.ID}}</td>
<td>{{$rule.Name}}</td>
<td>{{$rule.NotificationTag}}</td>
<td>{{if eq $rule.TriggerMode 0}}{{tr "ModeAlwaysTrigger"}}{{else}}{{tr "ModeOnetimeTrigger"}}{{end}}
<td>{{$rule.RulesRaw}}</td>
<td>{{$rule.Enable}}</td>
<td>