flatpickr 4.6.13 (fr, 24 h), embarqué dans le binaire, sur les champs datetime-local, y compris ceux chargés par htmx. La valeur envoyée au serveur reste au format YYYY-MM-DDTHH:MM ; couleurs reprises du thème. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
755 B
HTML
16 lines
755 B
HTML
<tr class="editing">
|
|
<td colspan="2">
|
|
<div class="stack">
|
|
<input type="datetime-local" name="started_at" value="{{ e.start_input() }}" required aria-label="Début">
|
|
<input type="datetime-local" name="ended_at" value="{{ end }}" required aria-label="Fin">
|
|
</div>
|
|
</td>
|
|
<td><select name="project_id" aria-label="Projet">{% include "_project_select.html" %}</select></td>
|
|
<td><input name="note" value="{{ e.note }}" aria-label="Note"></td>
|
|
<td></td>
|
|
<td class="actions">
|
|
<button class="btn small primary" hx-post="/ui/entries/{{ e.id }}/dupliquer" hx-include="closest tr" hx-target="closest tr" hx-swap="outerHTML">Créer</button>
|
|
<button class="btn small" hx-on:click="removeRow(this)">Annuler</button>
|
|
</td>
|
|
</tr>
|