diff options
| author | jan <jan@ruken.pw> | 2015-12-31 00:19:09 (UTC) |
|---|---|---|
| committer | jan <jan@ruken.pw> | 2015-12-31 00:19:09 (UTC) |
| commit | 16f6b2565d33be12c84dc78ed5fef147d8f435d3 (patch) | |
| tree | 38da730fd72a2f06a721bc9f804337392804e471 /views/create_list.html | |
| parent | c2503cab34c1abe3e0ab9de2ac2321a42db8989c (diff) | |
listen können jetzt erstellt werden.
Diffstat (limited to 'views/create_list.html')
| -rw-r--r-- | views/create_list.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/views/create_list.html b/views/create_list.html new file mode 100644 index 0000000..375dddd --- /dev/null +++ b/views/create_list.html | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | {{ define "create_list" }} | ||
| 2 | <html> | ||
| 3 | <head> | ||
| 4 | {{ template "materialize" }} | ||
| 5 | <title>grilist</title> | ||
| 6 | <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
| 8 | </head> | ||
| 9 | <body> | ||
| 10 | {{ template "navbar" . }} | ||
| 11 | <div class="container"> | ||
| 12 | <div class="row"> | ||
| 13 | <div class="col s12 m8 offset-m2 l6 offset-l3"> | ||
| 14 | {{ if .error }} | ||
| 15 | <div class="col s12 m8 offset-m2"> | ||
| 16 | <div class="card red lighten-2"> | ||
| 17 | <div class="card-content white-text"> | ||
| 18 | <span class="card-title">Fehler</span> | ||
| 19 | <p>Es gab einen Fehler: {{ .error }}</p> | ||
| 20 | </div> | ||
| 21 | </div> | ||
| 22 | </div> | ||
| 23 | {{ end }} | ||
| 24 | |||
| 25 | <form method="POST" name="create-list" action=""> | ||
| 26 | <div class="input-field col s12"> | ||
| 27 | <i class="material-icons prefix">list</i> | ||
| 28 | <input name="name" type="text" placeholder="Name" class="validate"/> | ||
| 29 | </div> | ||
| 30 | <div class="input-field col s12"> | ||
| 31 | <textarea id="description" name="description" class="materialize-textarea" style="padding-top: 32px"></textarea> | ||
| 32 | <label for="description">Beschreibung</label> | ||
| 33 | </div> | ||
| 34 | <div class="row col s12"> | ||
| 35 | <div class="right-align"> | ||
| 36 | <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action"> | ||
| 37 | Erstellen <i class="material-icons right">send</i> | ||
| 38 | </button> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| 41 | </form> | ||
| 42 | </div> | ||
| 43 | </div> | ||
| 44 | </div> | ||
| 45 | </body> | ||
| 46 | </html> | ||
| 47 | {{ end }} | ||
