Files
fitguide/app/templates/admin/_attachment_point_name_row_edit.html

19 lines
762 B
HTML

<tr id="attachment-point-name-{{ apn.id }}">
<td colspan="3">
<form hx-post="/admin/attachment-point-names/{{ apn.id }}"
hx-target="#attachment-point-name-{{ apn.id }}"
hx-swap="outerHTML"
class="inline-edit">
<span class="muted">#{{ apn.id }}</span>
<label>Name <input type="text" name="name" value="{{ apn.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/attachment-point-names/{{ apn.id }}/row"
hx-target="#attachment-point-name-{{ apn.id }}"
hx-swap="outerHTML">Cancel</button>
</div>
</form>
</td>
</tr>