Files
skeleton-api/app/templates/admin/_iso_thread_row.html
T

18 lines
642 B
HTML

<tr id="iso-thread-{{ t.id }}">
<td>{{ t.id }}</td>
<td>{{ t.diameter_mm }}</td>
<td>{{ t.pitch_mm }}</td>
<td>{{ t.depth_mm if t.depth_mm is not none else "—" }}</td>
<td class="row-actions">
<button class="btn btn-ghost"
hx-get="/admin/iso-threads/{{ t.id }}/edit"
hx-target="#iso-thread-{{ t.id }}"
hx-swap="outerHTML">Edit</button>
<button class="btn btn-danger"
hx-delete="/admin/iso-threads/{{ t.id }}"
hx-target="#iso-thread-{{ t.id }}"
hx-swap="outerHTML"
hx-confirm="Delete ISO thread #{{ t.id }}?">Delete</button>
</td>
</tr>