48 lines
2.1 KiB
HTML
48 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
{{- /*
|
|
Copyright 2021 Arsen Musayelyan
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/ -}}
|
|
{{template "base.html"}}
|
|
<html lang="en">
|
|
<head>
|
|
{{template "head" dict
|
|
"SiteTitle" .Config.Title
|
|
"PageTitle" "Login"
|
|
"Theme" .Config.Theme}}
|
|
</head>
|
|
<body>
|
|
{{ template "navbar" dict "SiteTitle" .Config.Title "Page" "login" "User" .Username}}
|
|
<div class="hero is-fullheight-with-navbar is-light">
|
|
<div class="hero-body">
|
|
<div class="container has-text-centered">
|
|
<article style="max-width: 30rem; margin-left: auto; margin-right: auto" class="message is-danger">
|
|
{{if eq .Error "usr"}}
|
|
<p class="message-header">User does not exist!</p>
|
|
{{else if eq .Error "pwd"}}
|
|
<p class="message-header">Incorrect password!</p>
|
|
{{end}}
|
|
</article>
|
|
<p class="subtitle">Login to {{.Config.Title}}</p>
|
|
<form action="/login" method="post">
|
|
<input style="max-width: 20rem" class="input is-info" type="text" placeholder="Username" name="username"><br>
|
|
<br>
|
|
<input style="max-width: 20rem" class="input is-info" type="password" placeholder="Password" name="password"><br><br>
|
|
<input class="button" style="background-color: #f5f5f5" type="submit" value="Submit">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |