21 lines
943 B
HTML
21 lines
943 B
HTML
<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>
|