Files
skeleton-api/app/templates/admin/_part_colour_row_edit.html
T
2026-07-02 12:34:33 -03:00

19 lines
705 B
HTML

<tr id="part-colour-{{ pc.id }}">
<td colspan="3">
<form hx-post="/admin/part-colours/{{ pc.id }}"
hx-target="#part-colour-{{ pc.id }}"
hx-swap="outerHTML"
class="inline-edit">
<span class="muted">#{{ pc.id }}</span>
<label>Name <input type="text" name="name" value="{{ pc.name }}" required></label>
<div class="row-actions">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-ghost"
hx-get="/admin/part-colours/{{ pc.id }}/row"
hx-target="#part-colour-{{ pc.id }}"
hx-swap="outerHTML">Cancel</button>
</div>
</form>
</td>
</tr>