mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-05 16:04:19 +01:00
Reference calendar time of other schedules, user-created named events
or the sun{rise,set} (when enabled)
For example
- '15m before sunset'
- '30m after cal#0'
- '1h15m after "foobar"'
Empty time spec is allowed, defaults to '1m'
'before sunrise' is the same as '1m before sunrise'
Internals are reworked to handle a more generalized 'Event' type, based
on the 'time point' and 'event' base classes fron sunrise and sunset
Sunrise and sunset should also track 'last' event as well as 'next
(not currently displayed anywhere, though)
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<template id="template-schedule-config" >
|
|
<div class="schedule">
|
|
<div class="pure-group">
|
|
<input name="schTime" type="text" class="pure-input-1" autocomplete="off" placeholder="*-* 1..7 00:00">
|
|
<input name="schAction" type="text" class="pure-input-1" autocomplete="off" placeholder="Terminal command">
|
|
</div>
|
|
|
|
<div class="pure-g">
|
|
<div class="pure-control-group pure-u-1 pure-u-lg-1-4">
|
|
<select class="pure-input-2-3" name="schType" required>
|
|
<option selected disabled value=""></option>
|
|
<option value="1">Disabled</option>
|
|
<option value="2">Calendar</option>
|
|
<option value="3">Relative</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="pure-control-group pure-u-1 pure-u-lg-1-4">
|
|
<label>Restore on boot</label>
|
|
<input class="checkbox-toggle" type="checkbox" name="schRestore">
|
|
</div>
|
|
|
|
<button class="pure-button button-del-settings-group pure-u-1 pure-u-lg-1-8" type="button">
|
|
Delete
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</template>
|