feat(course-visibility): warn on invisibility during registration

This commit is contained in:
Sarah Vaupel 2020-08-03 10:37:09 +02:00
parent 95490af7af
commit 23aca1caa4
3 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,7 @@ CourseAllocationRequiresCapacity: Bei Teilnahme an einer Zentralanmeldung muss e
CourseAllocationTermMustMatch: Kurs-Semester muss mit Semester der Zentralanmeldung übereinstimmen
CourseAllocationCapacityMayNotBeChanged: Kapazität eines Kurses, der an einer Zentralanmeldung teilnimmt, darf nicht nachträglich verändert werden
CourseShorthandTooLong: Lange Kurskürzel können zu Problemen bei der Darstellung und der Kommunikation mit den Studierenden führen. Bitte wählen Sie ein weniger langes Kürzel, falls möglich.
CourseNotAlwaysVisibleDuringRegistration: Um Studierenden über den gesamten Anmeldezeitraum hinweg die Anmeldung zum Kurs zu ermöglichen, sollte der Kurs auch über den gesamten Anmeldezeitraum hinweg sichtbar sein (dies ist aktuell nicht gegeben).
CourseLecturerRightsIdentical: Alle Sorten von Kursverwalter haben identische Rechte.

View File

@ -276,6 +276,7 @@ CourseAllocationRequiresCapacity: Course capacity needs to be specified if the c
CourseAllocationTermMustMatch: Course semester needs to match the semester of the central allocation
CourseAllocationCapacityMayNotBeChanged: The capacity of a course that participates in a central allocation must not be altered
CourseShorthandTooLong: Long course shorthands may lead to display issues and might complicate communication with students. Please choose a more concise shorthand if possible.
CourseNotAlwaysVisibleDuringRegistration: To allow for students to register during the entire registration period, the course should also be visible during the entire registration period (which is currently not the case).
CourseLecturerRightsIdentical: All sorts of course administrators have the same permissions.

View File

@ -343,6 +343,8 @@ validateCourse = do
warnValidation MsgCourseShorthandTooLong
$ length (CI.original cfShort) <= 10
warnValidation MsgCourseNotAlwaysVisibleDuringRegistration
$ NTop cfVisFrom <= NTop cfRegFrom && NTop cfRegTo <= NTop cfVisTo
getCourseNewR :: Handler Html -- call via toTextUrl