timer/templates/add-timer.hbs
2025-04-13 23:14:24 +02:00

21 lines
666 B
Handlebars

<h3>{{ localize "YAT.status.add-timer" }}</h3>
<form class="yat-add-form">
<label>
{{ localize "YAT.add-timer.timer name" }} *:
<input type="text" name="name" value="{{ nextName }}" required>
</label>
<label>
{{ localize "YAT.add-timer.duration" }} *:
<input type="text" name="duration" pattern="\d+|\d{2}:\d{2}|\d{2}:\d{2}:\d{2}" required>
</label>
<em class="yat-hint">{{ localize "YAT.add-timer.format-hint" }}</em>
<label>
{{ localize "YAT.add-timer.start-now" }}:
<input type="checkbox" name="startNow">
</label>
<button class="button" data-action="add-timer">{{ localize "YAT.status.add-timer" }}</button>
</form>