aboutsummaryrefslogtreecommitdiff
path: root/views/pages/list_settings.html
blob: 0ce38605f710d789bacc1ccec142c67b6a5ef937 (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
{{ 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>Listeneinstellungen</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 name="name" type="text" placeholder="Name" class="validate" value="{{ .list.Name }}"/>
						</div>
						<div class="input-field col s12">
							<i class="material-icons prefix">mode_edit</i>
							<textarea id="description" name="description" class="materialize-textarea">{{ .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 }}