Files
WeightTracker/app/templates/partials/checkin_row.html
2026-02-24 20:57:45 +11:00

14 lines
714 B
HTML

<tr id="checkin-{{ c.id }}">
<td>{{ c.checked_in_at | sydney }}</td>
<td style="font-weight: 600;">{{ '%.1f' % (c.weight_kg | float) }} kg</td>
<td>{{ '%.1f' % (c.bmi | float) if c.bmi else '—' }}</td>
<td>{{ c.notes or '—' }}</td>
<td>
<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>