BrainMinder/assets/templates/categories/form.tmpl
2024-12-11 17:52:09 +01:00

26 lines
738 B
Cheetah

{{ define "page:content" }}
<form
method="POST"
hx-post="{{.formAction}}"
hx-target="{{.formTarget}}"
>
<div class="w3-container page-container">
<p>
<label for="category-name">Name</label>
<input
name="Name"
class=" w3-border"
id="category-name"
type="text"
value="{{.category.Name}}"
/>
</p>
</div>
<div id="footer-navbar">
<button type="submit" class="main" title="Save"><i class="bi bi-floppy"></i><span>Save</span></button>
<a class="button secondary" href="/categories" hx-get="/categories" hx-push-url="true" hx-target="#page-content" title="Back"><i class="bi bi-arrow-left-circle"></i><span>Back</span></a>
</div>
</form>
{{ end }}