aboutsummaryrefslogtreecommitdiff
path: root/views/pages
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-10-10 11:03:30 (UTC)
committerjan <jan@ruken.pw>2016-10-10 11:03:30 (UTC)
commit5b069f567cc45475a7d2562150de6550d03634f5 (patch)
treeb38e5ed69425166c4e131087361fd8bb85bfe4bf /views/pages
parent49f7ec4e634c22c07df461b45840e6bd0830a88b (diff)
listeneinstellungen funktionieren
wir sollten vielleicht nur in die Datenbank schreiben, wenn auch was geaendert ist.
Diffstat (limited to 'views/pages')
-rw-r--r--views/pages/list_settings.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/pages/list_settings.html b/views/pages/list_settings.html
index 0ce3860..5612093 100644
--- a/views/pages/list_settings.html
+++ b/views/pages/list_settings.html
@@ -10,7 +10,7 @@
10 <body> 10 <body>
11 {{ template "navbar" . }} 11 {{ template "navbar" . }}
12 <div class="container"> 12 <div class="container">
13 <h1>Listeneinstellungen</h1> 13 <h1 class="row valign-wrapper"><a href="/list/{{ .list.ID}}" class="col s1 btn purple lighten-4" style="width: auto"><i class="material-icons">arrow_back</i></a><span class="col s11"> Listeneinstellungen</span></h1>
14 <div class="row"> 14 <div class="row">
15 <div class="col s12 m6 offset-m3 l4 offset-l4"> 15 <div class="col s12 m6 offset-m3 l4 offset-l4">
16 {{ if .error }} 16 {{ if .error }}
@@ -23,14 +23,15 @@
23 </div> 23 </div>
24 </div> 24 </div>
25 {{ end }} 25 {{ end }}
26 <form method="POST" name="list" action="#"> 26 <form method="POST" name="list" action="">
27 <div class="input-field col s12"> 27 <div class="input-field col s12">
28 <i class="material-icons prefix">assignment_ind</i> 28 <i class="material-icons prefix">assignment_ind</i>
29 <input name="name" type="text" placeholder="Name" class="validate" value="{{ .list.Name }}"/> 29 <input id="name" name="name" type="text" placeholder="Name" class="{{ if .error_name }}invalid{{ end }}" value="{{ .list.Name }}"/>
30 <label for="name">Name</label>
30 </div> 31 </div>
31 <div class="input-field col s12"> 32 <div class="input-field col s12">
32 <i class="material-icons prefix">mode_edit</i> 33 <i class="material-icons prefix">mode_edit</i>
33 <textarea id="description" name="description" class="materialize-textarea">{{ .list.Description }}</textarea> 34 <textarea id="description" name="description" class="materialize-textarea {{ if .error_description }}invalid{{ end }}">{{ .list.Description }}</textarea>
34 <label for="description">Beschreibung</label> 35 <label for="description">Beschreibung</label>
35 </div> 36 </div>
36 <div class="col s12"> 37 <div class="col s12">