46 lines
1.2 KiB
Go Template
46 lines
1.2 KiB
Go Template
<!doctype html>
|
|
<html>
|
|
<head>
|
|
{{template "head"}}
|
|
</head>
|
|
|
|
<body>
|
|
<div style="height: 100svh;" class="d-flex flex-column">
|
|
{{template "navbar" .Nav}}
|
|
<div class="container d-flex flex-grow-1 justify-content-center align-items-center flex-column">
|
|
{{with .Warning}}
|
|
<div class="alert alert-warning" role="alert">
|
|
{{.}}
|
|
</div>
|
|
{{end}}
|
|
{{with .Error}}
|
|
<div class="alert alert-danger" role="alert">
|
|
<p class="mb-0">{{.}}</p>
|
|
</div>
|
|
{{end}}
|
|
{{with .Form}}
|
|
<form method="{{.Method}}">
|
|
{{with .Elements}}
|
|
<div class="d-flex flex-column">
|
|
<label>
|
|
{{.Username.Label}}
|
|
{{template "input" .Username}}
|
|
</label>
|
|
<label>
|
|
{{.Password.Label}}
|
|
{{template "input" .Password}}
|
|
</label>
|
|
<label>
|
|
{{.ConfirmPassword.Label}}
|
|
{{template "input" .ConfirmPassword}}
|
|
</label>
|
|
<input class="btn btn-primary" type="submit" value="{{.Submit.Label}}">
|
|
</div>
|
|
{{end}}
|
|
</form>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|