aboutsummaryrefslogtreecommitdiff
path: root/views/register.html
blob: b946518aa72954a4b1aea78e5285dce0b36f891b (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
50
51
52
{{ define "register" }}
<html>
	<head>
		<title>Grilist - Registration</title>
		{{ template "materialize" }}
	</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="registration" action="#">
						<div class="input-field col s12">
							<i class="material-icons prefix">perm_identity</i>
							<input name="username" type="text" placeholder="Username" 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="Password" class="validate" />
						</div>
						<div class="input-field col s12">
							<i class="material-icons prefix">email</i>
							<input name="email" type="email" placeholder="E-Mail" class="validate">
						</div>
						<div class="row col s12">
							<div class="col s4">
								<a class="waves-effect waves-teal btn-flat" href="/">Cancel</a>
							</div>
							<div class="right-align">
								<button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
									Register <i class="material-icons right">send</i>
								</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
{{ end }}