34 lines
1.4 KiB
Cheetah
34 lines
1.4 KiB
Cheetah
{{template "base" .}}
|
|
{{define "content"}}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1>Login</h1>
|
|
<form method="post" action="/user/login">
|
|
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
|
<div class="form-group mt-5">
|
|
<label for="email">Email:</label>
|
|
{{with .Form.Errors.Get "email"}}
|
|
<label class="text-danger">{{.}}</label>
|
|
{{end}}
|
|
<input type="text" name="email" id="email" class="form-control {{with .Form.Errors.Get "email"}} is-invalid {{end}}"
|
|
value="" required autocomplete="off">
|
|
</div>
|
|
<div class="form-group mt-5">
|
|
<label for="password">Password:</label>
|
|
{{with .Form.Errors.Get "password"}}
|
|
<label class="text-danger">{{.}}</label>
|
|
{{end}}
|
|
<input type="text" name="password" id="password" class="form-control {{with .Form.Errors.Get "password"}} is-invalid {{end}}"
|
|
value="" required autocomplete="off">
|
|
</div>
|
|
<hr>
|
|
|
|
<input type="submit" class="btn btn-primary" value="Submit">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
|