Ajoute un sélecteur de date/heure sur les entrées

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>
This commit is contained in:
Romulus21andClaude Opus 5.5 committed 2026-10-26 15:49:07 +01:00
1 parent 7c22567b07
commit 092bc2fb3e
8 files changed
+97 -1

No files matched your search

+1 -1
View File
@@ -10,6 +10,6 @@
<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="this.closest('tr').remove()">Annuler</button>
<button class="btn small" hx-on:click="removeRow(this)">Annuler</button>
</td>
</tr>
+3
View File
@@ -4,8 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Tempus{% endblock %} · Tempus</title>
<link rel="stylesheet" href="/static/flatpickr/flatpickr.min.css">
<link rel="stylesheet" href="/static/app.css">
<script src="/static/htmx.min.js" defer></script>
<script src="/static/flatpickr/flatpickr.min.js" defer></script>
<script src="/static/flatpickr/fr.min.js" defer></script>
<script src="/static/app.js" defer></script>
</head>
<body>