2022-12-08 15:44:17 +00:00
|
|
|
<h1 style="margin-bottom: 0">
|
|
|
|
Prochain réveil le :
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ if .noAlarm}}
|
|
|
|
aucun défini
|
|
|
|
{{ else }}
|
2022-12-08 15:44:17 +00:00
|
|
|
{{ if .sameDay }}
|
|
|
|
aujourd'hui
|
|
|
|
{{ else if lt .nCycles 16 }}
|
|
|
|
demain
|
|
|
|
{{ else }}
|
|
|
|
{{ .nextAlarmDate }}
|
|
|
|
{{ end }}
|
|
|
|
à {{ .nextAlarmTime }}
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ end }}
|
2022-12-08 15:44:17 +00:00
|
|
|
</h1>
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ if not .noAlarm }}
|
2022-12-08 15:44:17 +00:00
|
|
|
<h2 style="color: gray; margin-top: 0; margin-left: 5em">
|
|
|
|
{{ if gt .nDays 2 }}(dans {{ .nDays }} jours){{ else }}(dans {{ .nCycles }} cycles + {{ .nMinutes }} min){{ end }}
|
|
|
|
</h2>
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ end }}
|
2022-12-08 15:44:17 +00:00
|
|
|
|
|
|
|
<div style="display: flex; gap: 10px;">
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ if not .noAlarm }}
|
2022-12-08 15:44:17 +00:00
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="cancel">
|
|
|
|
<button type="submit">
|
|
|
|
Annuler la prochaine alarme
|
|
|
|
</button>
|
|
|
|
</form>
|
2023-08-01 07:14:32 +00:00
|
|
|
{{ end }}
|
2022-12-08 15:44:17 +00:00
|
|
|
|
|
|
|
{{ if .isPlaying }}
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="stop">
|
|
|
|
<button type="submit">
|
|
|
|
Arrêter le réveil
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="nexttrack">
|
|
|
|
<button type="submit">
|
|
|
|
Prochaine musique
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{{ else }}
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="start">
|
|
|
|
<button type="submit">
|
|
|
|
Lancer le réveil
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Programmer une nouvelle alarme</h3>
|
|
|
|
<div style="display: flex; gap: 10px;">
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="new">
|
2024-06-18 16:32:52 +00:00
|
|
|
<input type="text" required name="time" placeholder="00:00" value="{{ .defaultAlarm }}">
|
2022-12-08 15:44:17 +00:00
|
|
|
<button type="submit">
|
|
|
|
Nouvelle alarme
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="new">
|
|
|
|
<input type="hidden" name="time" value="5c">
|
|
|
|
<button type="submit">
|
|
|
|
+ 5 cycles
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="post" action="/nojs.html">
|
|
|
|
<input type="hidden" name="action" value="new">
|
|
|
|
<input type="hidden" name="time" value="6c">
|
|
|
|
<button type="submit">
|
|
|
|
+ 6 cycles
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|