From 7fc9fefb0a255dcf627320e89802fa5b6869c542 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 29 Jan 2020 23:11:19 +0100 Subject: [PATCH] feat(exams): add warning about multiple automatic distributions --- src/Handler/Exam/AutoOccurrence.hs | 2 +- .../de-de-formal.hamlet | 19 +++++++++++++++++++ .../en-eu.hamlet | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 templates/i18n/exam-auto-occurrence-calculate/de-de-formal.hamlet create mode 100644 templates/i18n/exam-auto-occurrence-calculate/en-eu.hamlet diff --git a/src/Handler/Exam/AutoOccurrence.hs b/src/Handler/Exam/AutoOccurrence.hs index 908449351..925df22fd 100644 --- a/src/Handler/Exam/AutoOccurrence.hs +++ b/src/Handler/Exam/AutoOccurrence.hs @@ -62,7 +62,7 @@ examAutoOccurrenceCalculateWidget :: TermId -> SchoolId -> CourseShorthand -> Ex examAutoOccurrenceCalculateWidget tid ssh csh examn = do (formView, formEncoding) <- liftHandler . generateFormPost $ examAutoOccurrenceCalculateForm def - wrapForm' BtnExamAutoOccurrenceCalculate formView def + wrapForm' BtnExamAutoOccurrenceCalculate $(i18nWidgetFile "exam-auto-occurrence-calculate") def { formAction = Just . SomeRoute $ CExamR tid ssh csh examn EAutoOccurrenceR , formEncoding } diff --git a/templates/i18n/exam-auto-occurrence-calculate/de-de-formal.hamlet b/templates/i18n/exam-auto-occurrence-calculate/de-de-formal.hamlet new file mode 100644 index 000000000..ef8c4e35b --- /dev/null +++ b/templates/i18n/exam-auto-occurrence-calculate/de-de-formal.hamlet @@ -0,0 +1,19 @@ +$newline never +

+ Bei der Berechnung der Verteilung werden stets alle # + Klausurteilnehmer berücksichtigt, unabhängig davon, ob ihnen bereits # + ein Raum/Termin zugewiesen ist, oder nicht. + +
+ + Es werden dennoch nur Klausurteilnehmer anhand der neu berechneten # + Verteilung zugewiesen, die aktuell keinen zugewiesenen Raum/Termin # + haben. + +
+ + Dies kann bei mehrfacher Berechnung neuer Verteilungen dazu führen, # + dass die Zuteilung der meisten Klausurteilnehmer nicht mit der # + aktuellen Verteilung übereinstimmt. + +^{formView} diff --git a/templates/i18n/exam-auto-occurrence-calculate/en-eu.hamlet b/templates/i18n/exam-auto-occurrence-calculate/en-eu.hamlet new file mode 100644 index 000000000..a6b938066 --- /dev/null +++ b/templates/i18n/exam-auto-occurrence-calculate/en-eu.hamlet @@ -0,0 +1,19 @@ +$newline never +

+ When assignment rules are calculated all exam participants are # + considered, regardless of whether they are already assigned to an # + occurrence/room. + +
+ + Nonetheless only exam participants, who are not already assigned to # + an occurrence/room, will be assigned according to the newly # + calculated assignment rules. + +
+ + Thus calculating new assignment rules multiple times may lead to a # + situation in which the occurrence/room assignments of most # + participants do not match the newest assignment rules. + +^{formView}