aboutsummaryrefslogtreecommitdiff
path: root/views/pages/register.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/pages/register.html')
-rw-r--r--views/pages/register.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/views/pages/register.html b/views/pages/register.html
new file mode 100644
index 0000000..b946518
--- /dev/null
+++ b/views/pages/register.html
@@ -0,0 +1,52 @@
1{{ define "register" }}
2<html>
3 <head>
4 <title>Grilist - Registration</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="registration" action="#">
24 <div class="input-field col s12">
25 <i class="material-icons prefix">perm_identity</i>
26 <input name="username" type="text" placeholder="Username" 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="Password" class="validate" />
31 </div>
32 <div class="input-field col s12">
33 <i class="material-icons prefix">email</i>
34 <input name="email" type="email" placeholder="E-Mail" class="validate">
35 </div>
36 <div class="row col s12">
37 <div class="col s4">
38 <a class="waves-effect waves-teal btn-flat" href="/">Cancel</a>
39 </div>
40 <div class="right-align">
41 <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
42 Register <i class="material-icons right">send</i>
43 </button>
44 </div>
45 </div>
46 </form>
47 </div>
48 </div>
49 </div>
50 </body>
51</html>
52{{ end }} \ No newline at end of file