diff --git a/src/Jobs/Handler/SendNotification/Qualification.hs b/src/Jobs/Handler/SendNotification/Qualification.hs index 52334c689..5e5c1a6eb 100644 --- a/src/Jobs/Handler/SendNotification/Qualification.hs +++ b/src/Jobs/Handler/SendNotification/Qualification.hs @@ -66,16 +66,18 @@ dispatchNotificationQualificationRenewal nQualification jRecipient = do expiryDate <- formatTimeUser SelFormatDate qualificationUserValidUntil $ Just entRecipient let printJobName = "RenewalPin" - prepAddress upa = userDisplayName : (upa & html2textlines) -- TODO: use supervisor's address + prepAddress upa = userDisplayName : (upa & html2textlines) -- TODO: use supervisor's address + lmsIdent = lmsUserIdent & getLmsIdent pdfMeta = mkMeta [ toMeta "date" letterDate , toMeta "lang" (selectDeEn userLanguages) -- select either German or English only, see Utils.Lang - , toMeta "login" (lmsUserIdent & getLmsIdent) + , toMeta "login" lmsIdent , toMeta "pin" lmsUserPin , toMeta "recipient" userDisplayName , mbMeta "address" (prepAddress <$> userPostAddress) , toMeta "expiry" expiryDate , mbMeta "validduration" (show <$> qualificationValidDuration) + , toMeta "url" ("") ] pdfRenewal pdfMeta >>= \case Left err -> do diff --git a/templates/letter/fraport_renewal.md b/templates/letter/fraport_renewal.md index 0c0510006..9c86edb03 100644 --- a/templates/letter/fraport_renewal.md +++ b/templates/letter/fraport_renewal.md @@ -6,7 +6,6 @@ en-subject: Renewal of apron driving License author: Fraport AG - Fahrerausbildung (AVN-AR) phone: +49 69 690-30306 email: fahrerausbildung@fraport.de -url: place: Frankfurt/Main return-address: - 60547 Frankfurt @@ -22,6 +21,7 @@ encludes: hyperrefoptions: hidelinks ### Metadaten, welche automatisch ersetzt werden: +url: date: 11.11.1111 expiry: 00.00.0000 lang: de-de