From cdbe12c7268ee923cf0ed8c5609584a0f5193dc0 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Sun, 22 Mar 2020 17:55:33 +0100 Subject: [PATCH] feat(applications-list): add warning regarding features of study --- messages/uniworx/de-de-formal.msg | 2 +- src/Handler/Course/Application/List.hs | 2 ++ templates/course/applications-list.hamlet | 1 + templates/i18n/applications-list-info/de-de-formal.hamlet | 7 +++++++ templates/i18n/applications-list-info/en-eu.hamlet | 7 +++++++ 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 templates/i18n/applications-list-info/de-de-formal.hamlet create mode 100644 templates/i18n/applications-list-info/en-eu.hamlet diff --git a/messages/uniworx/de-de-formal.msg b/messages/uniworx/de-de-formal.msg index 854adf135..efe4e061e 100644 --- a/messages/uniworx/de-de-formal.msg +++ b/messages/uniworx/de-de-formal.msg @@ -2423,4 +2423,4 @@ AllocationUserNewMatches: Neue Zuteilungen AllocationUsersCount: Teilnehmer AllocationCoursesCount: Kurse -CourseOption tid@TermId ssh@SchoolId coursen@CourseName: #{tid} - #{ssh} - #{coursen} \ No newline at end of file +CourseOption tid@TermId ssh@SchoolId coursen@CourseName: #{tid} - #{ssh} - #{coursen} diff --git a/src/Handler/Course/Application/List.hs b/src/Handler/Course/Application/List.hs index 3c6835c06..dbdc50c61 100644 --- a/src/Handler/Course/Application/List.hs +++ b/src/Handler/Course/Application/List.hs @@ -680,6 +680,8 @@ postCApplicationsR tid ssh csh = do mapM_ addMessage' <=< execWriterT $ registerUsers cid applicants redirect $ CourseR tid ssh csh CUsersR + let + studyFeaturesWarning = $(i18nWidgetFile "applications-list-info") siteLayoutMsg title $ do setTitleI title diff --git a/templates/course/applications-list.hamlet b/templates/course/applications-list.hamlet index fde01d6e1..cc6a07744 100644 --- a/templates/course/applications-list.hamlet +++ b/templates/course/applications-list.hamlet @@ -25,4 +25,5 @@ $if mayAccept

_{MsgMenuCourseApplications} + ^{notification NotificationBroad =<< messageWidget Warning studyFeaturesWarning} ^{table} diff --git a/templates/i18n/applications-list-info/de-de-formal.hamlet b/templates/i18n/applications-list-info/de-de-formal.hamlet new file mode 100644 index 000000000..d1aa9b4a8 --- /dev/null +++ b/templates/i18n/applications-list-info/de-de-formal.hamlet @@ -0,0 +1,7 @@ +$newline never +

+ Beachten Sie bitte, dass Uni2work die Studiendaten von der zentralen Verwaltung bezieht und deswegen die Daten, insbesondere das Fachsemester und das Studienfach, oft nicht dem aktuellen Stand entsprechen oder gar fehlen können (Studiengangswechsel, Fachsemestereinstufungen, ...). +

+ Widersprechen Sie daher bitte nicht aufgrund der Studiendaten, oder weil Studiendaten fehlen, der Zuteilung eines Studierenden zu Ihrem Kurs (Veto bzw. 5.0). +

+ Der Studienfortschritt der Bewerber fließt über die Berechnung der Dringlichkeit, mit der ein Studierender einen Platz benötigt, in die Vergabe mit ein. diff --git a/templates/i18n/applications-list-info/en-eu.hamlet b/templates/i18n/applications-list-info/en-eu.hamlet new file mode 100644 index 000000000..235cb6345 --- /dev/null +++ b/templates/i18n/applications-list-info/en-eu.hamlet @@ -0,0 +1,7 @@ +$newline never +

+ Please note that Uni2work obtains the features of study from the central administration and therefore this data (especially semester and subject) often is out of date or may even be missing (change of field of study, semester classification, ...). +

+ Therefore, please do not reject applicants because of their features of study or because of missing features of study (veto or 5.0). +

+ The study progress of the applicants influences the allocation by means of the urgency with which a student needs a place.