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-28 22:52:26 -04:00
|
|
|
<label>{{tr "NotificationMethod"}}</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>
|
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}}
|