aboutsummaryrefslogtreecommitdiff
path: root/views/register.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/register.html')
-rw-r--r--views/register.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/views/register.html b/views/register.html
new file mode 100644
index 0000000..3c78f46
--- /dev/null
+++ b/views/register.html
@@ -0,0 +1,53 @@
1{{ define "register" }}
2<html>
3 <head>
4 <title>Grilist - Registration</title>
5 {{ template "materialize" }}
6 <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
7 </head>
8 <body>
9 <div class="row">
10 <div class="col s12 m6 offset-m3 l4 offset-l4">
11 <div class="row">
12 <h1 class="center-align">grilist</h1>
13 {{ if .error }}
14 <div class="col s12 m8 offset-m2">
15 <div class="card red lighten-2">
16 <div class="card-content white-text">
17 <span class="card-title">Fehler</span>
18 <p>Es gab einen Fehler: {{ .error }}</p>
19 </div>
20 </div>
21 </div>
22 {{ end }}
23
24 <form method="POST" name="registration" action="#">
25 <div class="input-field col s12">
26 <i class="material-icons prefix">perm_identity</i>
27 <input name="username" type="text" placeholder="Username" class="validate" value="{{ .previous_user }}"/>
28 </div>
29 <div class="input-field col s12">
30 <i class="material-icons prefix">lock_outline</i>
31 <input name="password" type="password" placeholder="Password" class="validate" />
32 </div>
33 <div class="input-field col s12">
34 <i class="material-icons prefix">email</i>
35 <input name="email" type="email" placeholder="E-Mail" class="validate">
36 </div>
37 <div class="row col s12">
38 <div class="col s4">
39 <a class="waves-effect waves-teal btn-flat" href="/">Cancel</a>
40 </div>
41 <div class="right-align">
42 <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
43 Register <i class="material-icons right">send</i>
44 </button>
45 </div>
46 </div>
47 </form>
48 </div>
49 </div>
50 </div>
51 </body>
52</html>
53{{ end }} \ No newline at end of file