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

19 lines
926 B
HTML

<tr id="checkin-{{ c.id }}" class="editing-row">
<td>{{ c.checked_in_at | sydney }}</td>
<td>
<input type="number" name="weight_kg" class="edit-input" step="0.1" value="{{ '%.1f' % (c.weight_kg | float) }}"
required autofocus>
</td>
<td style="color: var(--text-muted); font-size: 0.8rem;">auto</td>
<td>
<input type="text" name="notes" class="edit-input" placeholder="Notes" value="{{ c.notes or '' }}">
</td>
<td>
<div class="checkin-actions">
<button class="btn-icon btn-icon-success" hx-put="/checkin/{{ c.id }}" hx-target="#checkin-{{ c.id }}"
hx-swap="outerHTML" hx-include="closest tr" title="Save"></button>
<button class="btn-icon" hx-get="/checkin/{{ c.id }}/view" hx-target="#checkin-{{ c.id }}"
hx-swap="outerHTML" title="Cancel"></button>
</div>
</td>
</tr>