Reviewed-on: #186 Co-authored-by: Tyr Mactire <tyr@pettingzoo.co> Co-committed-by: Tyr Mactire <tyr@pettingzoo.co>devel v0.11.0
parent
cdaec9b3e0
commit
83b3d41008
@ -0,0 +1,55 @@
|
||||
{{ define "login" -}}
|
||||
<!doctype html>
|
||||
<html lang="{{ .Language }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<title lang="{{ .TextLogin.Language }}">{{ .TextLogin }}</title>
|
||||
{{ range $link := .HeadLinks }}
|
||||
{{template "head_link" $link -}}
|
||||
{{- end }}
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.centerbox {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.centerbox .form-control {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="text-center bg-light">
|
||||
<div class="centerbox" style="max-width: 330px">
|
||||
<form method="post">
|
||||
<img class="mb-4" src="{{ .LogoHRef }}" alt="Logo" height="100">
|
||||
<h1 class="h3 mb-3 font-weight-normal" lang="{{ .TextLogin.Language }}">{{ .TextLogin }}</h1>
|
||||
{{- if .FormError }}
|
||||
{{ template "alert" .FormError}}
|
||||
{{- end }}
|
||||
{{ template "form_input" .FormInstance}}
|
||||
<button type="submit" class="btn btn-lg btn-primary btn-block" lang="{{ .TextLogin.Language }}">{{ .TextLogin }}</button>
|
||||
</form>
|
||||
</div>
|
||||
{{- range $link := .FooterScripts}}
|
||||
{{template "script" $link }}
|
||||
{{- end}}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
Loading…
Reference in new issue