Adding Manufacturers and ScopeModels

This commit is contained in:
Ian Roddis committed 2026-06-25 10:46:39 -03:00
1 parent 9111117404
commit b7ad517174
24 files changed
+822 -2

No files matched your search

@@ -0,0 +1,23 @@
<tr id="manufacturer-{{ m.id }}">
<td>{{ m.id }}</td>
<td>{{ m.name }}</td>
<td><a href="{{ m.url }}" target="_blank" rel="noopener">{{ m.url }}</a></td>
<td>
{% if m.logo_url %}
<img src="{{ m.logo_url }}" alt="{{ m.name }} logo" style="max-height:2rem;">
{% else %}
<span class="muted">—</span>
{% endif %}
</td>
<td class="row-actions">
<button class="btn btn-ghost"
hx-get="/admin/manufacturers/{{ m.id }}/edit"
hx-target="#manufacturer-{{ m.id }}"
hx-swap="outerHTML">Edit</button>
<button class="btn btn-danger"
hx-delete="/admin/manufacturers/{{ m.id }}"
hx-target="#manufacturer-{{ m.id }}"
hx-swap="outerHTML"
hx-confirm="Delete {{ m.name }}?">Delete</button>
</td>
</tr>