25 lines
1.0 KiB
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}}
|