diff options
author | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
commit | 6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch) | |
tree | e2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/pages/create_list.html | |
parent | b868b32d348e6350225560b71c8712c2e932b063 (diff) |
Ordnung in die Templates gebracht
Diffstat (limited to 'views/pages/create_list.html')
-rw-r--r-- | views/pages/create_list.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/views/pages/create_list.html b/views/pages/create_list.html new file mode 100644 index 0000000..ead61dd --- /dev/null +++ b/views/pages/create_list.html | |||
@@ -0,0 +1,46 @@ | |||
1 | {{ define "create_list" }} | ||
2 | <html> | ||
3 | <head> | ||
4 | {{ template "materialize" }} | ||
5 | <title>grilist</title> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
7 | </head> | ||
8 | <body> | ||
9 | {{ template "navbar" . }} | ||
10 | <div class="container"> | ||
11 | <div class="row"> | ||
12 | <div class="col s12 m8 offset-m2 l6 offset-l3"> | ||
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="create-list" action=""> | ||
25 | <div class="input-field col s12"> | ||
26 | <i class="material-icons prefix">list</i> | ||
27 | <input name="name" type="text" placeholder="Name" class="validate"/> | ||
28 | </div> | ||
29 | <div class="input-field col s12"> | ||
30 | <textarea id="description" name="description" class="materialize-textarea" style="padding-top: 32px"></textarea> | ||
31 | <label for="description">Beschreibung</label> | ||
32 | </div> | ||
33 | <div class="row col s12"> | ||
34 | <div class="right-align"> | ||
35 | <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action"> | ||
36 | Erstellen <i class="material-icons right">send</i> | ||
37 | </button> | ||
38 | </div> | ||
39 | </div> | ||
40 | </form> | ||
41 | </div> | ||
42 | </div> | ||
43 | </div> | ||
44 | </body> | ||
45 | </html> | ||
46 | {{ end }} | ||