blob: c74b3a98a088eb271b4aadd951e641ef772d6775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{{ define "list_settings" }}
<html>
<head>
{{ template "materialize" }}
{{ template "materialize_js" }}
<link rel="stylesheet" href="/assets/css/list.css" />
<title>{{ .list.Name }} Einstellungen - grilist</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body>
{{ template "navbar" . }}
<div class="container">
<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>
<div class="row">
<div class="col s12 m8 offset-m1">
{{ if .error }}
<div class="col s12 m8 offset-m2">
<div class="card red lighten-2">
<div class="card-content white-text">
<span class="card-title">Fehler</span>
<p>Es gab einen Fehler: {{ .error }}</p>
</div>
</div>
</div>
{{ end }}
<div class="row">
<div class="col s12 m10 l8">
<form method="POST" name="list" action="">
<div class="input-field col s12">
<i class="material-icons prefix">assignment_ind</i>
<input id="name" name="name" type="text" placeholder="Name" class="{{ if .error_name }}invalid{{ end }}" value="{{ .list.Name }}"/>
<label for="name">Name</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">mode_edit</i>
<textarea id="description" name="description" class="materialize-textarea {{ if .error_description }}invalid{{ end }}">{{ .list.Description }}</textarea>
<label for="description">Beschreibung</label>
</div>
<div class="col s12">
<div class="right-align">
<button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action">
Speichern <i class="material-icons right">send</i>
</button>
</div>
</div>
</form>
</div>
<div class="col s12 m2 l4">
<div class="card red lighten-2">
<div class="card-content white-text">
<span class="card-title">Liste löschen</span>
<p>Unwiderruflich und so. Beschwer dich nicht!</p>
</div>
<div class="card-action center-align">
<a class="btn red darken-1 white-text" href="/list/{{ .list.ID }}/delete">löschen</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
{{ end }}
|