BrainMinder/assets/templates/categories/form.tmpl

16 lines
652 B
Cheetah
Raw Normal View History

2024-08-22 10:13:16 +02:00
{{ define "page:content" }}
2024-12-27 17:33:16 +01:00
<form method="POST" hx-post="{{.formAction}}" hx-target="{{.formTarget}}">
<div class="page-container">
2024-08-22 10:13:16 +02:00
<p>
<label for="category-name">Name</label>
2024-12-27 17:33:16 +01:00
<input name="Name" id="category-name" type="text" value="{{.category.Name}}"/>
2024-08-22 10:13:16 +02:00
</p>
</div>
2024-12-11 17:52:09 +01:00
<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>
2024-08-22 10:13:16 +02:00
</div>
</form>
{{ end }}