mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-03-23 03:21:50 +00:00
前端更新: 匹配新的报警规则设置页面
This commit is contained in:
7
resource/template/component/rule.html
vendored
7
resource/template/component/rule.html
vendored
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user