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

16 lines
603 B
HTML

<tr id="attachment-point-name-{{ apn.id }}">
<td>{{ apn.id }}</td>
<td>{{ apn.name }}</td>
<td class="row-actions">
<button class="btn btn-ghost"
hx-get="/admin/attachment-point-names/{{ apn.id }}/edit"
hx-target="#attachment-point-name-{{ apn.id }}"
hx-swap="outerHTML">Edit</button>
<button class="btn btn-danger"
hx-delete="/admin/attachment-point-names/{{ apn.id }}"
hx-target="#attachment-point-name-{{ apn.id }}"
hx-swap="outerHTML"
hx-confirm="Delete {{ apn.name }}?">Delete</button>
</td>
</tr>