diff --git a/messages/uniworx/de-de-formal.msg b/messages/uniworx/de-de-formal.msg index a05068330..3b5a526a4 100644 --- a/messages/uniworx/de-de-formal.msg +++ b/messages/uniworx/de-de-formal.msg @@ -1402,7 +1402,7 @@ ExamCorrectHeading examname@Text: Prüfungsergebnisse für #{examname} eintragen ExamCorrectHeadDate: Zeit ExamCorrectHeadParticipant: Teilnehmer -ExamCorrectHeadParticipantTooltip: Geben Sie hier einen beliebigen eindeutigen Identifikator des Teilnehmers an. Definitiv eindeutig ist die Matrikelnummer des Teilnehmers, aber auch der Name oder ein Teil der Matrikelnummer können unter Umständen (je nach Liste aller Prüfungsteilnehmer) bereits eindeutig sein. +ExamCorrectHeadParticipantTooltip: ExamCorrectHeadPart exampartnum@ExamPartNumber: #{exampartnum} ExamCorrectHeadPartName exampartname@ExamPartName: #{exampartname} ExamCorrectHeadStatus: Status diff --git a/messages/uniworx/en-eu.msg b/messages/uniworx/en-eu.msg index 88f3ed764..e0ae2c93b 100644 --- a/messages/uniworx/en-eu.msg +++ b/messages/uniworx/en-eu.msg @@ -1400,7 +1400,6 @@ ExamCorrectHeading examname: Submit corrections for #{examname} ExamCorrectHeadDate: Time ExamCorrectHeadParticipant: Participant -ExamCorrectHeadParticipantTooltip: Enter any string that uniquely identifies the participant. Their matriculation number is definitely unique, but also their name or a part of their matriculation number may already be unique for this participant (depending on the list of all participants). ExamCorrectHeadPart exampartnum: #{exampartnum} ExamCorrectHeadPartName exampartname: #{exampartname} ExamCorrectHeadStatus: Status diff --git a/src/Handler/Exam/Correct.hs b/src/Handler/Exam/Correct.hs index daaa269a0..37c2a24c4 100644 --- a/src/Handler/Exam/Correct.hs +++ b/src/Handler/Exam/Correct.hs @@ -86,8 +86,6 @@ getECorrectR tid ssh csh examn = do name <- newIdent fieldView (pointsField :: Field Handler Points) ("exam-correct__" <> toPathPiece n) name [("uw-exam-correct--part-input", toPathPiece n)] (Left "") False - participantHeadTooltip = [whamlet| _{MsgExamCorrectHeadParticipantTooltip} |] - examGrades :: [ExamGrade] examGrades = universeF @@ -95,6 +93,7 @@ getECorrectR tid ssh csh examn = do siteLayoutMsg heading $ do setTitleI heading + let examCorrectExplanation = $(i18nWidgetFile "exam-correct-explanation") $(widgetFile "exam-correct") diff --git a/templates/exam-correct.hamlet b/templates/exam-correct.hamlet index 7b57f6348..9a664561d 100644 --- a/templates/exam-correct.hamlet +++ b/templates/exam-correct.hamlet @@ -1,24 +1,18 @@ $newline never +
+ ^{examCorrectExplanation}
- +
_{MsgExamCorrectHeadDate} _{MsgExamCorrectHeadParticipant} - ^{iconTooltip participantHeadTooltip Nothing True} - $forall ExamPart{examPartNumber,examPartName} <- examParts + $forall ExamPart{examPartNumber} <- examParts - $maybe name <- examPartName - - - _{MsgExamCorrectHeadPart examPartNumber} - - _{MsgExamCorrectHeadPartName name} - $nothing _{MsgExamCorrectHeadPart examPartNumber} $if mayEditResults diff --git a/templates/i18n/exam-correct-explanation/de-de-formal.hamlet b/templates/i18n/exam-correct-explanation/de-de-formal.hamlet new file mode 100644 index 000000000..27a418ba4 --- /dev/null +++ b/templates/i18n/exam-correct-explanation/de-de-formal.hamlet @@ -0,0 +1,9 @@ +$newline never +

+ Um eine Prüfungsleistung einzutragen können Sie in der # + Teilnehmer-Spalte einen beliebigen eindeutigen Identifikator des # + Teilnehmers angeben.
+ + Vermutlich eindeutig ist die Matrikelnummer des Teilnehmers, aber # + auch der Name oder ein Teil der Matrikelnummer können unter # + Umständen bereits eindeutig sein. # diff --git a/templates/i18n/exam-correct-explanation/en-eu.hamlet b/templates/i18n/exam-correct-explanation/en-eu.hamlet new file mode 100644 index 000000000..146e37f65 --- /dev/null +++ b/templates/i18n/exam-correct-explanation/en-eu.hamlet @@ -0,0 +1,8 @@ +$newline never +

+ To enter a participant's exam achievement you can submit any string # + that uniquely identifies the participant.
+ + Matriculation numbers are likely unique. # + The participant's name or a part of their matriculation number may # + also be sufficiently unique.