Ajouter / Enregistrer (primary), Réinitialiser la couleur, Archiver / Réactiver et Supprimer deviennent des icônes groupées ; les SVG sont centralisés dans la macro _icons.html. Hauteurs communes (--control, --control-sm) pour champs, pastilles de couleur et boutons-icônes ; les pastilles ne s'étirent plus. Tiret devant les projets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
1.2 KiB
HTML
18 lines
1.2 KiB
HTML
{% import "_icons.html" as icons %}
|
||
<tr id="entry-{{ e.id }}"{% if e.running() %} class="running"{% endif %}>
|
||
<td class="time">
|
||
{{ e.start_time() }} – {{ e.end_time() }}
|
||
{% if e.overlaps %}<span class="warn" title="Chevauche une autre entrée">⚠</span>{% endif %}
|
||
</td>
|
||
<td><span class="dot" style="--color: {{ e.color }}"></span><span class="client">{{ e.client_name }}</span> / {{ e.project_name }}</td>
|
||
<td class="note">{{ e.note }}</td>
|
||
<td class="num">{{ e.duration() }}</td>
|
||
<td class="actions">
|
||
<div class="btn-group">
|
||
<button class="btn small icon primary" title="Modifier" aria-label="Modifier" hx-get="/ui/entries/{{ e.id }}/edit" hx-target="closest tr" hx-swap="outerHTML">{% call icons::icon("edit") %}{% endcall %}</button>
|
||
<button class="btn small icon" title="Dupliquer" aria-label="Dupliquer" hx-get="/ui/entries/{{ e.id }}/dupliquer" hx-target="closest tr" hx-swap="afterend">{% call icons::icon("copy") %}{% endcall %}</button>
|
||
<button class="btn small icon danger" title="Supprimer" aria-label="Supprimer" hx-delete="/ui/entries/{{ e.id }}" hx-target="closest tr" hx-swap="outerHTML" hx-confirm="Supprimer cette entrée ?">{% call icons::icon("trash") %}{% endcall %}</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|