chore: improve delete

This commit is contained in:
2023-10-06 10:46:45 +01:00
parent 73511ec401
commit 16a6ae844b
4 changed files with 74 additions and 35 deletions

View File

@@ -30,7 +30,7 @@
Upload image
</span>
</button>
<input id="file" name="file" type="file" required accept="image/png" />
<input id="file" name="file" type="file" required accept="image/png,image/jpeg" />
</div>
</fieldset>
<button>

View File

@@ -353,7 +353,7 @@
</h2>
<form hx-delete="/models/delete">
<input type="hidden" value="{{ .Model.Id }}" />
<input type="hidden" name="id" value="{{ .Model.Id }}" />
<button class="danger">
Delete
</button>