This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
goddit/templates/user_login.html

25 lines
1.0 KiB
HTML

{{define "header"}}
<h1 class="mb-0">Register</h1>
{{end}}
{{define "content"}}
<form action="/login" method="POST">
{{.CSRF}}
<div class="form-group">
<label>Username</label>
<input name="username" type="text" class="form-control {{with .Form.Errors.Title}}is-invalid{{end}}" placeholder="Enter your username" value="{{with .Form.Username}}{{.}}{{end}}">
{{with .Form.Errors.Username}}
<div class="invalid-feedack">{{.}}</div>
{{end}}
</div>
<div class="form-group">
<label>Password</label>
<input name="password" type="password" class="form-control {{with .Form.Errors.Password}}is-invalid{{end}}" placeholder="Enter your password" value="{{with .Form.Password}}{{.}}{{end}}">
{{with .Form.Errors.Password}}
<div class="invalid-feedack">{{.}}</div>
{{end}}
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>
{{end}}