Improve form and template usage (#66)

* Improve form and template usage.
This commit is contained in:
Mike Stefanello 2024-06-14 12:35:35 -04:00 committed by GitHub
parent 7d85ff0b08
commit 5ebd42d8f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 341 additions and 274 deletions

View file

@ -1,5 +1,5 @@
{{define "content"}}
<form method="post" hx-boost="true" action="{{call .ToURL "login.post"}}">
<form method="post" hx-boost="true" action="{{url "login.post"}}">
{{template "messages" .}}
<div class="field">
<label for="email" class="label">Email address</label>
@ -20,7 +20,7 @@
<button class="button is-primary">Log in</button>
</p>
<p class="control">
<a href="{{call .ToURL "home"}}" class="button is-light">Cancel</a>
<a href="{{url "home"}}" class="button is-light">Cancel</a>
</p>
</div>
{{template "csrf" .}}