wg-portal/assets/tpl/login.html

54 lines
2.3 KiB
HTML
Raw Normal View History

2020-11-05 13:37:51 -05:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>{{ .static.WebsiteTitle }} - Login</title>
<meta name="description" content="{{ .static.WebsiteTitle }}">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/fonts/fontawesome-all.min.css">
<link rel="stylesheet" href="/fonts/font-awesome.min.css">
<link rel="stylesheet" href="/fonts/fontawesome5-overrides.min.css">
<link rel="stylesheet" href="/css/signin.css">
</head>
<body class="bg-gradient-primary">
<div class="container">
2020-11-09 08:32:20 -05:00
<div class="card mt-5">
<div class="card-header">Please sign in</div>
<div class="card-body">
<form class="form-signin" method="post">
2021-03-22 17:51:37 -04:00
<input type="hidden" name="_csrf" value="{{.Csrf}}">
2020-11-09 08:32:20 -05:00
<div class="form-group">
<label for="inputUsername">Email</label>
<input type="text" name="username" class="form-control" id="inputUsername" aria-describedby="usernameHelp" placeholder="Enter email">
2020-11-09 08:32:20 -05:00
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input type="password" name="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
2020-11-05 13:37:51 -05:00
2020-11-09 08:32:20 -05:00
{{ if eq .error true }}
<hr>
<span class="text-danger">{{.message}}</span>
{{end}}
</form>
2020-11-05 13:37:51 -05:00
2020-11-09 08:32:20 -05:00
<div class="card shadow-lg o-hidden border-0 my-5">
<div class="card-body p-0">
<a href="/" class="btn btn-white btn-block text-primary btn-user">Go Home</a>
</div>
</div>
2020-11-05 13:37:51 -05:00
</div>
</div>
2020-11-10 16:23:05 -05:00
{{template "prt_flashes.html" .}}
2020-11-05 13:37:51 -05:00
</div>
<script src="/js/jquery.min.js"></script>
2020-11-10 03:31:02 -05:00
<script src="/js/bootstrap.bundle.min.js"></script>
2020-11-05 13:37:51 -05:00
<script src="/js/jquery.easing.js"></script>
<script src="/js/custom.js"></script>
</body>
</html>