aboutsummaryrefslogtreecommitdiff
path: root/views/login.html
blob: 6014d4d4a6ee53db1c79fab3a55995408a26a91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{ define "login" }}
<html>
	<head>
		<title>Grilist - Login</title>
		{{ template "materialize" }}
		<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
	</head>
	<body>
		<div class="row">
			<div class="col s12 m6 offset-m3 l4 offset-l4">
				<div class="row">
					<h1 class="center-align">grilist</h1>
					{{ if .error }}
					<div class="col s12 m8 offset-m2">
						<div class="card red lighten-2">
							<div class="card-content white-text">
								<span class="card-title">Fehler</span>
								<p>Es gab einen Fehler: {{ .error }}</p>
							</div>
						</div>
					</div>
					{{ end }}

					<form method="POST" name="login" action="#">
						<div class="input-field col s12">
							<i class="material-icons prefix">perm_identity</i>
							<input name="username" type="text" placeholder="Benutzername" class="validate" value="{{ .previous_user }}"/>
						</div>
						<div class="input-field col s12">
							<i class="material-icons prefix">lock_outline</i>
							<input name="password" type="password" placeholder="Passwort" class="validate" />
						</div>
						<div class="row col s12">
							<div class="col s4">
								<a class="waves-effect waves-teal btn-flat" href="/register">Registrieren</a>
							</div>
							<div class="right-align">
								<button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
									Login <i class="material-icons right">send</i>
								</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
{{ end }}