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,20 @@
<tr id="manufacturer-{{ m.id }}">
<td colspan="5">
<form hx-post="/admin/manufacturers/{{ m.id }}"
hx-target="#manufacturer-{{ m.id }}"
hx-swap="outerHTML"
class="inline-edit">
<span class="muted">#{{ m.id }}</span>
<label>Name <input type="text" name="name" value="{{ m.name }}" required></label>
<label>Homepage URL <input type="url" name="url" value="{{ m.url }}" required></label>
<label>Logo URL <input type="url" name="logo_url" value="{{ m.logo_url if m.logo_url is not none else '' }}" placeholder="optional"></label>
<div class="row-actions">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-ghost"
hx-get="/admin/manufacturers/{{ m.id }}/row"
hx-target="#manufacturer-{{ m.id }}"
hx-swap="outerHTML">Cancel</button>
</div>
</form>
</td>
</tr>