2016-08-21 12:18:58 -07:00
|
|
|
|
<div id="scheduledTaskPage" data-role="page" class="page type-interior scheduledTasksConfigurationPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Scheduled%20tasks" data-require="jQuery,jqmpopup,scripts/scheduledtaskpage,emby-input,emby-button,emby-select">
|
2017-05-06 12:42:17 -07:00
|
|
|
|
<div>
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<div class="content-primary">
|
2014-07-21 18:29:06 -07:00
|
|
|
|
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<div class="readOnlyContent">
|
|
|
|
|
<h2 class="taskName"></h2>
|
|
|
|
|
<p id="pTaskDescription"></p>
|
|
|
|
|
<div>
|
2016-02-07 12:47:09 -07:00
|
|
|
|
<br />
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<h1 style="margin: .6em 0; vertical-align: middle; display: inline-block;">
|
|
|
|
|
${HeaderTaskTriggers}
|
|
|
|
|
</h1>
|
2017-05-06 12:42:17 -07:00
|
|
|
|
<button is="emby-button" type="button" class="raised btnInvite submit raised-mini" style="margin-left: 1em;" title="${ButtonAddScheduledTaskTrigger}" onclick="ScheduledTaskPage.showAddTriggerPopup();">
|
2016-07-23 11:43:07 -07:00
|
|
|
|
<i class="md-icon">add</i>
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<span>${ButtonAdd}</span>
|
2016-06-04 20:50:07 -07:00
|
|
|
|
</button>
|
2013-02-20 18:33:05 -07:00
|
|
|
|
</div>
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<div class="taskTriggers"></div>
|
|
|
|
|
</div>
|
2013-02-20 18:33:05 -07:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-03-15 22:33:31 -07:00
|
|
|
|
<div data-role="popup" id="popupAddTrigger" class="popup" style="min-width: 300px;">
|
|
|
|
|
<form class="addTriggerForm">
|
|
|
|
|
<div class="ui-bar-a" style="text-align: center; padding: 0 20px;">
|
|
|
|
|
<h3>${HeaderAddScheduledTaskTrigger}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div data-role="content">
|
2016-08-21 12:18:58 -07:00
|
|
|
|
<div class="selectContainer">
|
|
|
|
|
<select is="emby-select" id="selectTriggerType" name="selectTriggerType" label="${LabelTriggerType}" onchange="ScheduledTaskPage.refreshTriggerFields(this.value);">
|
|
|
|
|
<option value="DailyTrigger">${OptionDaily}</option>
|
|
|
|
|
<option value="WeeklyTrigger">${OptionWeekly}</option>
|
|
|
|
|
<option value="IntervalTrigger">${OptionOnInterval}</option>
|
|
|
|
|
<option value="StartupTrigger">${OptionOnAppStartup}</option>
|
|
|
|
|
<option value="SystemEventTrigger">${OptionAfterSystemEvent}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="fldDayOfWeek" class="selectContainer">
|
|
|
|
|
<select is="emby-select" id="selectDayOfWeek" name="selectDayOfWeek" label="${LabelDay}">
|
|
|
|
|
<option value="Sunday">${OptionSunday}</option>
|
|
|
|
|
<option value="Monday">${OptionMonday}</option>
|
|
|
|
|
<option value="Tuesday">${OptionTuesday}</option>
|
|
|
|
|
<option value="Wednesday">${OptionWednesday}</option>
|
|
|
|
|
<option value="Thursday">${OptionThursday}</option>
|
|
|
|
|
<option value="Friday">${OptionFriday}</option>
|
|
|
|
|
<option value="Saturday">${OptionSaturday}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="fldTimeOfDay" class="inputContainer">
|
|
|
|
|
<input is="emby-input" type="time" id="txtTimeOfDay" name="txtTimeOfDay" required="required" label="${LabelTime}"/>
|
|
|
|
|
<div class="fieldDescription timeFieldExample"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="fldSelectSystemEvent" class="selectContainer">
|
|
|
|
|
<select is="emby-select" id="selectSystemEvent" name="selectSystemEvent" label="${LabelEvent}">
|
|
|
|
|
<option value="WakeFromSleep">${OptionWakeFromSleep}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="fldSelectInterval" class="selectContainer">
|
|
|
|
|
<select is="emby-select" id="selectInterval" label="${LabelEveryXMinutes}">
|
|
|
|
|
<option value="9000000000">15 minutes</option>
|
|
|
|
|
<option value="18000000000">30 minutes</option>
|
|
|
|
|
<option value="27000000000">45 minutes</option>
|
|
|
|
|
<option value="36000000000">1 hour</option>
|
|
|
|
|
<option value="72000000000">2 hours</option>
|
|
|
|
|
<option value="108000000000">3 hours</option>
|
|
|
|
|
<option value="144000000000">4 hours</option>
|
|
|
|
|
<option value="216000000000">6 hours</option>
|
|
|
|
|
<option value="288000000000">8 hours</option>
|
|
|
|
|
<option value="432000000000">12 hours</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="inputContainer">
|
|
|
|
|
<input is="emby-input" id="txtTimeLimit" type="number" pattern="[0-9]*" min="1" step=".5" label="${LabelTimeLimitHours}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<button type="submit" data-theme="b" data-icon="check">
|
|
|
|
|
${ButtonAdd}
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" data-icon="delete" onclick="$(this).parents('.popup').popup('close');">
|
|
|
|
|
${ButtonCancel}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2016-03-15 22:33:31 -07:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|