Added HTMX attributes to auth forms.

This commit is contained in:
mikestefanello 2021-12-24 15:38:14 -05:00
parent 1dd8eb0cd7
commit 677193ccba
4 changed files with 10 additions and 4 deletions

View File

@ -17,6 +17,12 @@
<div class="box">
{{template "messages" .}}
{{template "content" .}}
<div class="content is-small has-text-centered" hx-boost="true">
<a href="{{call .ToURL "login"}}">Login</a> &#9676;
<a href="{{call .ToURL "register"}}">Create an account</a> &#9676;
<a href="{{call .ToURL "forgot_password"}}">Forgot password?</a>
</div>
</div>
</div>
</div>

View File

@ -1,5 +1,6 @@
{{define "content"}}
<form method="post">
<form method="post" hx-boost="true">
{{template "messages" .}}
<div class="field">
<label for="email" class="label">Email address</label>
<div class="control">
@ -24,5 +25,4 @@
</div>
{{template "csrf" .}}
</form>
<div class="content is-small"><a href="{{call .ToURL "register"}}">Create an account</a> - <a href="{{call .ToURL "forgot_password"}}">Forgot password?</a></div>
{{end}}

View File

@ -1,5 +1,5 @@
{{define "content"}}
<form method="post">
<form method="post" hx-boost="true">
<div class="field">
<label for="name" class="label">Name</label>
<div class="control">

View File

@ -1,5 +1,5 @@
{{define "content"}}
<form method="post">
<form method="post" hx-boost="true">
<div class="field">
<label for="password" class="label">Password</label>
<div class="control">