BrainMinder/assets/templates/categories/form.tmpl

15 lines
625 B
Cheetah

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