sprechstunden-go/templates/index.html

29 lines
1.1 KiB
HTML
Raw Normal View History

2022-09-19 16:04:59 +00:00
<!DOCTYPE html>
<html lang="de">
2022-08-24 06:16:27 +00:00
<head>
2022-09-19 16:04:59 +00:00
<title>Sprechstunden</title>
{{template "head.html" .}}
2022-08-24 06:16:27 +00:00
</head>
<body>
<form method="GET" action="/getByCourse">
<label for="veranstaltung">Veranstaltung: </label>
2022-09-19 16:04:59 +00:00
<select name="veranstaltung" id="veranstaltung" size="1" onchange="document.forms[0].submit()">
2022-08-29 20:58:19 +00:00
<option value="">Alle</option>
2022-08-24 06:16:27 +00:00
{{range $course := .Courses}}
<option value="{{$course.Id}}"{{if eq $course.Id $.SelectedCourse}} selected{{end}}>{{$course.Name}}</option>{{end}}
</select>
<input type="submit" value="Auswählen" />
2022-08-24 06:16:27 +00:00
</form>
<form method="GET" action="/getByRoom">
<label for="raum">Raum: </label>
2022-09-19 16:04:59 +00:00
<select name="raum" id="raum" size="1" onchange="document.forms[1].submit()">
2022-08-29 20:58:19 +00:00
<option value="">Alle</option>
2022-08-24 06:16:27 +00:00
{{range $room := .Rooms}}
<option value="{{$room.Id}}"{{if eq $room.Id $.SelectedRoom}} selected{{end}}>{{$room.Name}}</option>{{end}}
2022-08-24 06:16:27 +00:00
</select>
<input type="submit" value="Auswählen" />
</form>
{{.Timetable}}
{{template "footer.html" .}}
</body>
2022-08-24 06:16:27 +00:00
</html>