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 5f66b0ee71
commit 97bef0257e
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 "forgot_password.post"}}">
<form method="post" hx-boost="true" action="{{url "forgot_password.post"}}">
<div class="content">
<p>Enter your email address and we'll email you a link that allows you to reset your password.</p>
</div>
@ -15,7 +15,7 @@
<button class="button is-primary">Reset password</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" .}}