2021-01-18 20:59:04 -05:00
|
|
|
{{define "component/cron"}}
|
|
|
|
<div class="ui tiny cron modal transition hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="header">{{tr "AddScheduledTasks"}}</div>
|
2021-01-18 20:59:04 -05:00
|
|
|
<div class="content">
|
|
|
|
<form id="cronForm" 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 "BackUp"}}">
|
2021-01-18 20:59:04 -05:00
|
|
|
</div>
|
2022-09-13 23:32:15 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "TaskType"}}</label>
|
|
|
|
<select name="TaskType" class="ui fluid dropdown">
|
|
|
|
<option value="0">{{tr "CronTask"}}</option>
|
|
|
|
<option value="1">{{tr "TriggerTask"}}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-01-18 20:59:04 -05:00
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Scheduler"}}</label>
|
|
|
|
<input type="text" name="Scheduler" placeholder="0 0 3 * * *{{tr "3amDaily"}}">
|
2021-01-18 20:59:04 -05:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Command"}}</label>
|
2021-01-18 20:59:04 -05:00
|
|
|
<textarea name="Command"></textarea>
|
|
|
|
</div>
|
|
|
|
<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 "IgnoreAllAndExecuteOnlyThroughSpecificServers"}}</option>
|
|
|
|
<option value="1">{{tr "AllIncludedOnlySpecificServersAreNotExecuted"}}</option>
|
2022-09-13 23:32:15 -04:00
|
|
|
<option value="2">{{tr "ExecuteByTriggerServer"}}</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-01-20 09:15:47 -05:00
|
|
|
<div class="ui fluid multiple servers search selection dropdown">
|
|
|
|
<input type="hidden" name="ServersRaw">
|
|
|
|
<i class="dropdown icon"></i>
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="default text">{{tr "EnterIdAndNameToSearch"}}</div>
|
2021-01-20 09:15:47 -05:00
|
|
|
<div class="menu"></div>
|
|
|
|
</div>
|
2021-01-18 20:59:04 -05:00
|
|
|
</div>
|
2022-04-14 22:56:04 -04:00
|
|
|
<div class="field">
|
2022-05-01 10:41:03 -04:00
|
|
|
<label>{{tr "NotificationMethodGroup"}}</label>
|
2022-04-14 22:56:04 -04:00
|
|
|
<input type="text" name="NotificationTag" placeholder="default">
|
|
|
|
</div>
|
2021-01-18 20:59:04 -05:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui push-successful checkbox">
|
|
|
|
<input name="PushSuccessful" type="checkbox" tabindex="0" class="hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "PushSuccessMessages"}}</label>
|
2021-01-18 20:59:04 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="ui warning message">
|
|
|
|
<p>
|
2022-05-01 10:41:03 -04:00
|
|
|
{{tr "TheFormaOfTheScheduleIs"}} <code>* * * * * *</code> {{tr "SecondsMinutesHoursDaysMonthsWeeksSeeDetails"}} <a
|
2021-01-20 09:15:47 -05:00
|
|
|
href="https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format"
|
2022-04-28 22:52:26 -04:00
|
|
|
target="_blank">{{tr "ScheduleExpressionFormat"}}</a><br>
|
2022-04-28 23:45:41 -04:00
|
|
|
{{safe (tr "IntroductionOfCommands")}}
|
2021-01-18 20:59:04 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class=" actions">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="ui negative button">{{tr "Cancel"}}</div>
|
2022-05-01 10:41:03 -04:00
|
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
2021-01-18 20:59:04 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|