From 5dad0a79c72237176f4eba0424533a9ce5c96764 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 29 Mar 2021 10:47:14 +0200 Subject: [PATCH] chore: improve faq & results mail for allocations --- messages/uniworx/misc/de-de-formal.msg | 1 + messages/uniworx/misc/en-eu.msg | 1 + .../Handler/SendNotification/Allocation.hs | 6 +++++ .../allocation-no-places.de-de-formal.hamlet | 24 +++++++++++++++---- .../faq/allocation-no-places.en-eu.hamlet | 22 +++++++++++++---- templates/mail/allocationResults.hamlet | 7 ++++++ 6 files changed, 51 insertions(+), 10 deletions(-) diff --git a/messages/uniworx/misc/de-de-formal.msg b/messages/uniworx/misc/de-de-formal.msg index 8e116ef8f..8c90519c5 100644 --- a/messages/uniworx/misc/de-de-formal.msg +++ b/messages/uniworx/misc/de-de-formal.msg @@ -2673,6 +2673,7 @@ AllocationResultsTip: Die folgenden Informationen entsprechen dem aktuellen Stan AllocationResultsStudentTip: Unten aufgeführt sind alle Plätze, die Sie im Rahmen der genannten Zentralanmeldung erhalten haben und von denen Sie seit dem weder abgemeldet wurden, noch sich selbst abgemeldet haben. Plätze, über die Sie ggf. bereits informiert wurden, können also erneut aufgeführt sein. AllocationResultStudentRegistrationTip: Sie sind zu oben genanntem Kurs in Uni2work angemeldet. AllocationResultsStudentRegistrationTip: Sie sind zu den oben genannten Kursen in Uni2work angemeldet. +AllocationResultsStudentConsultFaq n@Int: Falls Sie Fragen oder Anmerkungen haben, beachten Sie bitte auch die Informationen auf #{pluralDE n "der" "den"} folgenden #{pluralDE n "Seite" "Seiten"}: FavouriteVisited: Kürzlich besucht FavouriteParticipant: Ihre Kurse diff --git a/messages/uniworx/misc/en-eu.msg b/messages/uniworx/misc/en-eu.msg index b809ca1c1..5f1f0ad57 100644 --- a/messages/uniworx/misc/en-eu.msg +++ b/messages/uniworx/misc/en-eu.msg @@ -2673,6 +2673,7 @@ AllocationResultsTip: The following information reflect the current state of the AllocationResultsStudentTip: Listed below are placements in courses which you have received due to the mentioned central allocation and for which you have not left the respective course or have been deregistered. Thus placements you have been informed of already may be listed again. AllocationResultStudentRegistrationTip: You were enrolled in the course mentioned above in Uni2work. AllocationResultsStudentRegistrationTip: You were enrolled in the courses mentioned above in Uni2work. +AllocationResultsStudentConsultFaq n@Int: If you have questions or remarks, please also take into account the information on the following #{pluralEN n "page" "pages"}: FavouriteVisited: Visited FavouriteParticipant: Your courses diff --git a/src/Jobs/Handler/SendNotification/Allocation.hs b/src/Jobs/Handler/SendNotification/Allocation.hs index 788c62086..94b86e4ed 100644 --- a/src/Jobs/Handler/SendNotification/Allocation.hs +++ b/src/Jobs/Handler/SendNotification/Allocation.hs @@ -14,6 +14,8 @@ import Import import Handler.Utils import Jobs.Handler.SendNotification.Utils +import Handler.Info (FAQItem(..)) + import Text.Hamlet import qualified Database.Esqueleto as E @@ -182,7 +184,11 @@ dispatchNotificationAllocationResults nAllocation jRecipient = userMailT jRecipi setSubjectI $ MsgMailSubjectAllocationResults allocationName editNotifications <- mkEditNotifications jRecipient + studentFaqItems <- forM studentFaqItems' $ \faqItem -> (faqItem, ) <$> toTextUrl (FaqR :#: faqItem) + addHtmlMarkdownAlternatives $(ihamletFile "templates/mail/allocationResults.hamlet") + where + studentFaqItems' = [FAQAllocationNoPlaces] dispatchNotificationAllocationNewCourse :: AllocationId -> CourseId -> UserId -> Handler () dispatchNotificationAllocationNewCourse nAllocation nCourse jRecipient = userMailT jRecipient $ do diff --git a/templates/i18n/faq/allocation-no-places.de-de-formal.hamlet b/templates/i18n/faq/allocation-no-places.de-de-formal.hamlet index 55c53c6e5..850d54104 100644 --- a/templates/i18n/faq/allocation-no-places.de-de-formal.hamlet +++ b/templates/i18n/faq/allocation-no-places.de-de-formal.hamlet @@ -19,14 +19,28 @@ $newline never
  • - Studienfortschritt (gemessen am Prozentsatz der für den Abschluss # - erforderlichen Veranstaltungen, die bereits bestanden wurden), # - nicht jedoch das Fach- oder Hochschulsemester + Die sog. „zentrale Dringlichkeit“
    - Den aus dem Studienfortschritt errechnet Parameter nennt Uni2work # - die „zentrale Dringlichkeit“. + Als Berechnungsgrundlage wird der Studienfortschritt (gemessen am # + Prozentsatz der für den Abschluss erforderlichen Veranstaltungen, # + die bereits bestanden wurden), nicht jedoch das Fach- oder # + Hochschulsemester herangezogen. # + + So wird z.B. für das Bachelorseminar als Grundqualifikation # + angenommen, dass bereits mindestens 90 ECTS erbracht wurden. + +
    + + An dieser Stelle werden auch einige weitere Faktoren # + berücksichtigt, sodass die zentrale Dringlichkeit die # + „Notwendigkeit“ einen Platz zu erhalten möglichst gut modelliert. # + + Insbesondere wird die Dringlichkeit reduziert, wenn die zum # + Abschluss des Studiums notwendige Anzahl an Kursen der # + entsprechenden Art (also Seminare/Praktika) bereits bestanden # + wurden.
  • diff --git a/templates/i18n/faq/allocation-no-places.en-eu.hamlet b/templates/i18n/faq/allocation-no-places.en-eu.hamlet index d3572f43c..9fa4bfd77 100644 --- a/templates/i18n/faq/allocation-no-places.en-eu.hamlet +++ b/templates/i18n/faq/allocation-no-places.en-eu.hamlet @@ -17,14 +17,26 @@ $newline never not compared between applicants.
  • - Study progress (measured by the number ECTS credits achieved as a # - percentage of those required for graduation) but not (university) # - semesters + The so called “central priority”
    - The parameter calculated from study progress is referred to within # - Uni2work as “central priority”. + Study progress (measured by the number ECTS credits achieved as a # + percentage of those required for graduation) but not (university) # + semesters is used as a basis for the calculation. # + + As an example, bachelor students are expected to have already # + achieved 90 ECTS points to be assigned a seminar. + +
    + + At this point a number of other factors are also considered, such # + that the central priority models the “need” for a place as # + accurately as possible. # + + In particular the priority will be reduced if the requisite number # + of courses of the appropriate type (seminar/practical course) were # + already passed.
  • Ratings of applications by course administrators diff --git a/templates/mail/allocationResults.hamlet b/templates/mail/allocationResults.hamlet index 8b9039215..72b7fa12d 100644 --- a/templates/mail/allocationResults.hamlet +++ b/templates/mail/allocationResults.hamlet @@ -35,6 +35,13 @@ $newline never $maybe pResults <- participantResults

    _{SomeMessage MsgAllocationResultsStudentTip} + $if not (null studentFaqItems) +

    + _{SomeMessage (MsgAllocationResultsStudentConsultFaq (length studentFaqItems))} +