2021-01-15 11:45:49 -05:00
|
|
|
|
{{define "component/monitor"}}
|
|
|
|
|
<div class="ui tiny monitor modal transition hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<div class="header">{{tr "AddMonitor"}}</div>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
<div class="content">
|
|
|
|
|
<form id="monitorForm" class="ui form">
|
|
|
|
|
<input type="hidden" name="ID" />
|
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "Name"}}</label>
|
|
|
|
|
<input type="text" name="Name" placeholder="{{tr "Blog"}}" />
|
2021-04-17 11:36:37 -04:00
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "Target"}}</label>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
name="Target"
|
|
|
|
|
placeholder="HTTP(https://t.tt)|Ping(t.tt)|TCP(t.tt:80)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "Type"}}</label>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
<select name="Type" class="ui fluid dropdown">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<option value="1">HTTP-GET{{tr "SslExpirationOrChange"}}</option>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
<option value="2">ICMP-Ping</option>
|
|
|
|
|
<option value="3">TCP-Ping</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2021-09-02 11:45:21 -04:00
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "Duration"}}</label>
|
|
|
|
|
<input type="number" name="Duration" placeholder="{{tr "Seconds"}}" />
|
2021-09-02 11:45:21 -04:00
|
|
|
|
</div>
|
2021-04-22 09:53:31 -04:00
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "Coverage"}}</label>
|
2021-06-21 09:30:42 -04:00
|
|
|
|
<select name="Cover" class="ui fluid dropdown">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<option value="0">{{tr "AllIncludedOnlySpecificServersAreNotRequest"}}</option>
|
|
|
|
|
<option value="1">{{tr "IgnoreAllRequestOnlyThroughSpecificServers"}}</option>
|
2021-06-21 09:30:42 -04:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "SpecificServers"}}</label>
|
2021-04-22 09:53:31 -04:00
|
|
|
|
<div class="ui fluid multiple servers search selection dropdown">
|
|
|
|
|
<input type="hidden" name="SkipServersRaw" />
|
|
|
|
|
<i class="dropdown icon"></i>
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<div class="default text">{{tr "EnterIdAndNameToSearch"}}}}</div>
|
2021-04-22 09:53:31 -04:00
|
|
|
|
<div class="menu"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-04-14 22:56:04 -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" />
|
|
|
|
|
</div>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
<div class="field">
|
|
|
|
|
<div class="ui nb-notify checkbox">
|
|
|
|
|
<input name="Notify" type="checkbox" tabindex="0" class="hidden" />
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<label>{{tr "EnableFailureNotification"}}</label>
|
2021-01-16 02:36:00 -05:00
|
|
|
|
</div>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div class="ui warning message">
|
|
|
|
|
<p>
|
2022-04-28 23:45:41 -04:00
|
|
|
|
{{safe (tr "IntroductionOfMonitor")}}
|
2021-04-17 11:36:37 -04:00
|
|
|
|
</p>
|
2021-01-15 11:45:49 -05:00
|
|
|
|
</div>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
<div class="ui negative button">{{tr "Cancel"}}</div>
|
2021-08-05 23:48:34 -04:00
|
|
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">
|
2022-04-28 22:52:26 -04:00
|
|
|
|
{{tr "Confirm"}}<i class="checkmark icon"></i>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2021-01-15 11:45:49 -05:00
|
|
|
|
</div>
|
2021-04-17 11:36:37 -04:00
|
|
|
|
{{end}}
|