2022-09-21 20:18:39 +00:00
< {{define "title"}}Sprechstunde anlegen{{end}}
{{define "content"}}
< p >
2022-10-18 09:52:37 +00:00
{{range .Errors}}{{.}}< br > {{end}}
2022-09-21 20:18:39 +00:00
< / p >
2023-03-06 08:05:17 +00:00
< p >
Für die vorlesungsfreie Zeit müssen und können keine Sprechstunden gebucht werden.
Nutzt die offenen Arbeitsräume in dieser Zeit, wann immer ihr sie braucht.
< / p >
2022-09-21 20:18:39 +00:00
< form method = "POST" action = "addOfficeHour" >
< label for = "veranstaltung" > Veranstaltung< / label > :
< select name = "veranstaltung" id = "veranstaltung" >
{{range $course := .Courses}}
< option value = "{{$course.Id}}" { { if eq $ course . Id $ . SelectedCourse } } selected { { end } } > {{$course.Name}}< / option >
{{end}}
2022-10-18 09:52:37 +00:00
< / select > < br >
2022-10-20 06:25:12 +00:00
< label for = "woche" > Vorlesungswoche< / label > :
2022-09-21 20:18:39 +00:00
< select name = "woche" id = "woche" >
< option value = "0" { { if eq 0 $ . Date . Week } } selected { { end } } > Jede< / option >
< option value = "1" { { if eq 1 $ . Date . Week } } selected { { end } } > Ungerade< / option >
< option value = "2" { { if eq 2 $ . Date . Week } } selected { { end } } > Gerade< / option >
2022-10-18 09:52:37 +00:00
< / select > < br >
2022-09-21 20:18:39 +00:00
< label for = "tag" > Tag< / label > : < select name = "tag" id = "tag" >
< option value = "0" { { if eq 0 $ . Date . Day } } selected { { end } } > Montag< / option >
< option value = "1" { { if eq 1 $ . Date . Day } } selected { { end } } > Dienstag< / option >
< option value = "2" { { if eq 2 $ . Date . Day } } selected { { end } } > Mittwoch< / option >
< option value = "3" { { if eq 3 $ . Date . Day } } selected { { end } } > Donnerstag< / option >
< option value = "4" { { if eq 4 $ . Date . Day } } selected { { end } } > Freitag< / option >
2022-10-18 09:52:37 +00:00
< / select > < br >
2022-11-15 10:42:23 +00:00
< label for = "startzeit" > Startzeit< / label > : < input type = "time" name = "startzeit" id = "startzeit" min = "{{printf " % 02d " . EarliestStartTime . Hour } } : { { printf " % 02d " . EarliestStartTime . Minute } } " max = "{{printf " % 02d " . LatestStartTime . Hour } } : { { printf " % 02d " . LatestStartTime . Minute } } " { { if ge $ . Date . Hour . EarliestStartTime . Hour } } value = "{{printf " % 02d " $ . Date . Hour } } : { { printf " % 02d " $ . Date . Minute } } " { { end } } required > < br >
2022-10-18 09:52:37 +00:00
< label for = "dauer" > Dauer in Minuten< / label > : < input name = "dauer" id = "dauer" type = "number" min = "{{.MinuteGranularity}}" max = "120" step = "{{.MinuteGranularity}}" value = "{{.Duration}}" required > < br >
2022-09-21 20:18:39 +00:00
< label for = "raum" > Raum< / label > :
< select name = "raum" id = "raum" >
{{range $room := .Rooms}}
< option value = "{{$room.Id}}" { { if eq $ room . Id $ . SelectedRoom } } selected { { end } } > {{$room.Name}}< / option >
{{end}}
2022-10-18 09:52:37 +00:00
< / select > < br >
< label for = "raumname" > Raumname (für Sonderräume)< / label > : < input type = "text" name = "raumname" id = "raumname" value = "{{.Roomname}}" > < br >
< label for = "name" > Name< / label > : < input name = "name" id = "name" type = "text" size = "50" value = "{{.Name}}" required > < br >
2022-09-21 20:18:39 +00:00
< label for = "email" > Email-Adresse< / label > :
2022-10-18 09:52:37 +00:00
< input name = "email" id = "email" type = "email" size = "50" value = "{{.Email}}" required > < br >
< label for = "info" > Info< / label > : < input name = "info" id = "info" type = "text" size = "50" value = "{{.Info}}" > < br >
2022-09-21 20:18:39 +00:00
< input type = "submit" >
< / form >
{{if ne .Config.Tutor.MailSuffix ""}}
2022-10-18 09:52:37 +00:00
Du musst hier eine Email-Adresse angeben, die auf „{{.Config.Tutor.MailSuffix}}“ endet.< br >
2022-09-21 20:18:39 +00:00
{{end}}
Außerdem dürfen in Räumen nur begrenzt viele Sprechstunden gleichzeitig stattfinden, nämlich
< dl >
{{range $room := .Rooms}}
< dt > {{$room.Name}}< / dt >
< dd > {{$room.MaxOccupy}} Sprechstunde{{if gt $room.MaxOccupy 1}}n{{end}}< / dd >
{{end}}
< / dl >
{{end}}