Added HTMX attributes to auth forms.
This commit is contained in:
parent
1dd8eb0cd7
commit
677193ccba
4 changed files with 10 additions and 4 deletions
|
|
@ -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> ◌
|
||||
<a href="{{call .ToURL "register"}}">Create an account</a> ◌
|
||||
<a href="{{call .ToURL "forgot_password"}}">Forgot password?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue