User login
parent
202b8457b5
commit
a50cb265cb
@ -0,0 +1,28 @@
|
|||||||
|
{{define "title"}}Login{{end}}
|
||||||
|
|
||||||
|
{{define "main"}}
|
||||||
|
<form action='/user/login' method='POST' novalidate>
|
||||||
|
<!-- Notice that here we are looping over the NonFieldErrors and displaying
|
||||||
|
them, if any exist -->
|
||||||
|
{{range .Form.NonFieldErrors}}
|
||||||
|
<div class='error'>{{.}}</div>
|
||||||
|
{{end}}
|
||||||
|
<div>
|
||||||
|
<label>Email:</label>
|
||||||
|
{{with .Form.FieldErrors.email}}
|
||||||
|
<label class='error'>{{.}}</label>
|
||||||
|
{{end}}
|
||||||
|
<input type='email' name='email' value='{{.Form.Email}}'>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label>Password:</label>
|
||||||
|
{{with .Form.FieldErrors.password}}
|
||||||
|
<label class='error'>{{.}}</label>
|
||||||
|
{{end}}
|
||||||
|
<input type='password' name='password'>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type='submit' value='Login'>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{{end}}
|
Loading…
Reference in New Issue