aboutsummaryrefslogtreecommitdiff
path: root/views/pages/login.html
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
committerrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
commit6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch)
treee2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/pages/login.html
parentb868b32d348e6350225560b71c8712c2e932b063 (diff)
Ordnung in die Templates gebracht
Diffstat (limited to 'views/pages/login.html')
-rw-r--r--views/pages/login.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/views/pages/login.html b/views/pages/login.html
new file mode 100644
index 0000000..65c4857
--- /dev/null
+++ b/views/pages/login.html
@@ -0,0 +1,48 @@
1{{ define "login" }}
2<html>
3 <head>
4 <title>Grilist - Login</title>
5 {{ template "materialize" }}
6 </head>
7 <body>
8 <div class="row">
9 <div class="col s12 m6 offset-m3 l4 offset-l4">
10 <div class="row">
11 <h1 class="center-align">grilist</h1>
12 {{ if .error }}
13 <div class="col s12 m8 offset-m2">
14 <div class="card red lighten-2">
15 <div class="card-content white-text">
16 <span class="card-title">Fehler</span>
17 <p>Es gab einen Fehler: {{ .error }}</p>
18 </div>
19 </div>
20 </div>
21 {{ end }}
22
23 <form method="POST" name="login" action="#">
24 <div class="input-field col s12">
25 <i class="material-icons prefix">perm_identity</i>
26 <input name="username" type="text" placeholder="Benutzername" class="validate" value="{{ .previous_user }}"/>
27 </div>
28 <div class="input-field col s12">
29 <i class="material-icons prefix">lock_outline</i>
30 <input name="password" type="password" placeholder="Passwort" class="validate" />
31 </div>
32 <div class="row col s12">
33 <div class="col s4">
34 <a class="waves-effect waves-teal btn-flat" href="/register">Registrieren</a>
35 </div>
36 <div class="right-align">
37 <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
38 Login <i class="material-icons right">send</i>
39 </button>
40 </div>
41 </div>
42 </form>
43 </div>
44 </div>
45 </div>
46 </body>
47</html>
48{{ end }}