sprechstunden-go/templates/index.html

31 lines
1.2 KiB
HTML
Raw Normal View History

2022-08-24 06:16:27 +00:00
<html>
<head>
<title>Sprechstunden</title>
</head>
<body>
<form method="GET" action="/getByCourse">
<label for="veranstaltung">Veranstaltung: </label>
<select name="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>
<select name="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}}
<footer>
<a href="/addOfficeHour">Sprechstunde anlegen</a><br />
2022-09-05 18:10:35 +00:00
<a href="/deleteOfficeHour">Sprechstunde löschen</a><br />
Technische Fragen an <a href="mailto:sprechstundentool@mathebau.de">sprechstundentool@mathebau.de</a>
</footer>
</body>
2022-08-24 06:16:27 +00:00
</html>