2024-08-22 10:13:16 +02:00
|
|
|
{{ 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"
|
2024-11-17 20:12:20 +01:00
|
|
|
class=" w3-border"
|
2024-08-22 10:13:16 +02:00
|
|
|
id="category-name"
|
|
|
|
type="text"
|
|
|
|
value="{{.category.Name}}"
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
|
2024-12-08 21:07:22 +01:00
|
|
|
<p class="hide-small">
|
|
|
|
<button class="main"><i class="bi bi-floppy"></i> Save</button>
|
|
|
|
<a class="button secondary" hx-target="#page-content" hx-push-url="true" hx-get="/categories"><i class="bi bi-arrow-left-circle"></i> Back</a>
|
2024-08-22 10:13:16 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2024-12-08 21:07:22 +01:00
|
|
|
<div id="footer-navbar-container">
|
|
|
|
<div id="footer-navbar" class="bar hide-medium hide-large">
|
|
|
|
<div class="bar-item">
|
|
|
|
<button type="submit" class="main" title="Save"><i class="bi bi-floppy"></i></button>
|
2024-08-22 10:13:16 +02:00
|
|
|
</div>
|
2024-12-08 21:07:22 +01:00
|
|
|
<div class="bar-item">
|
|
|
|
<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></a>
|
2024-08-22 10:13:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|