2022-09-21 20:18:39 +00:00
|
|
|
{{define "title"}}Übersicht{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<form method="GET" action="/getByCourse">
|
|
|
|
<label for="veranstaltung">Veranstaltung: </label>
|
|
|
|
<select name="veranstaltung" id="veranstaltung" size="1" onchange="document.forms[0].submit()">
|
|
|
|
<option value="">Alle</option>
|
|
|
|
{{range $course := .Courses}}
|
|
|
|
<option value="{{$course.Id}}"{{if eq $course.Id $.SelectedCourse}} selected{{end}}>{{$course.Name}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
2022-10-18 09:52:37 +00:00
|
|
|
<input type="submit" value="Auswählen">
|
2022-09-21 20:18:39 +00:00
|
|
|
</form>
|
|
|
|
<form method="GET" action="/getByRoom">
|
|
|
|
<label for="raum">Raum: </label>
|
|
|
|
<select name="raum" id="raum" size="1" onchange="document.forms[1].submit()">
|
|
|
|
<option value="">Alle</option>
|
|
|
|
{{range $room := .Rooms}}
|
|
|
|
<option value="{{$room.Id}}"{{if eq $room.Id $.SelectedRoom}} selected{{end}}>{{$room.Name}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
2022-10-18 09:52:37 +00:00
|
|
|
<input type="submit" value="Auswählen">
|
2022-09-21 20:18:39 +00:00
|
|
|
</form>
|
|
|
|
{{.Timetable}}
|
|
|
|
{{end}}
|