adding part colour
This commit is contained in:
1 parent
422e217180
commit
2e7002b73b
14 files changed
+379
-2
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<tr id="part-colour-{{ pc.id }}">
|
||||
<td colspan="3">
|
||||
<form hx-post="/admin/part-colours/{{ pc.id }}"
|
||||
hx-target="#part-colour-{{ pc.id }}"
|
||||
hx-swap="outerHTML"
|
||||
class="inline-edit">
|
||||
<span class="muted">#{{ pc.id }}</span>
|
||||
<label>Name <input type="text" name="name" value="{{ pc.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/part-colours/{{ pc.id }}/row"
|
||||
hx-target="#part-colour-{{ pc.id }}"
|
||||
hx-swap="outerHTML">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in new issue
Block a user