aboutsummaryrefslogtreecommitdiff
path: root/views/pages/list_settings.html
blob: 5612093f8b4996d044fefeb8ae967598f4ddb79c (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
{{ 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 m6 offset-m3 l4 offset-l4">
					{{ 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 }}
					<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>
		</div>
	</body>
</html>
{{ end }}