Allow users to edit checkins

This commit is contained in:
Peter Stockings
2026-02-24 20:57:45 +11:00
parent 10256a1283
commit 1c935a64be
3 changed files with 91 additions and 2 deletions

View File

@@ -4,7 +4,11 @@
<td>{{ '%.1f' % (c.bmi | float) if c.bmi else '—' }}</td>
<td>{{ c.notes or '—' }}</td>
<td>
<button class="btn-icon" hx-delete="/checkin/{{ c.id }}" hx-target="#checkin-{{ c.id }}" hx-swap="outerHTML"
hx-confirm="Delete this check-in?">🗑️</button>
<div class="checkin-actions">
<button class="btn-icon" hx-get="/checkin/{{ c.id }}/edit" hx-target="#checkin-{{ c.id }}"
hx-swap="outerHTML" title="Edit">✏️</button>
<button class="btn-icon" hx-delete="/checkin/{{ c.id }}" hx-target="#checkin-{{ c.id }}" hx-swap="outerHTML"
hx-confirm="Delete this check-in?" title="Delete">🗑️</button>
</div>
</td>
</tr>