From ab085edbf4b40e6dc4e654c32ba6b82da088e1a0 Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Wed, 27 Mar 2024 09:34:48 +0100 Subject: [PATCH] #1039: Added Maestro notification pdf template --- CHANGELOG.md | 3 +- ...ng-maestro-notification-pdf-html.html.twig | 148 ++++++++++++++++++ 2 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 web/modules/custom/os2forms_selvbetjening/src/templates/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e092a8..2c40d0ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,9 @@ Nedenfor ses dato for release og beskrivelse af opgaver som er implementeret. * Tilføjede mulighed for csv eksport af alle formular konfigurationer. * Tilføjede mulighed for ekstra tjek på email modtagere (@aarhus.dk). +* Tilføjede Maestro notifikation pdf template. -## [2.7.8] 20-24-03-08 +## [2.7.8] 2024-03-08 * Opdaterede til [OS2Forms NemLogin OpenID Connect 2.0.1](https://github.com/itk-dev/os2forms_nemlogin_openid_connect/releases/tag/2.0.1) diff --git a/web/modules/custom/os2forms_selvbetjening/src/templates/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig b/web/modules/custom/os2forms_selvbetjening/src/templates/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig new file mode 100644 index 00000000..b9318417 --- /dev/null +++ b/web/modules/custom/os2forms_selvbetjening/src/templates/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig @@ -0,0 +1,148 @@ +{# + Use this to style Maestro PDF notifications. + + Set it on '/admin/config/system/os2forms_forloeb' PDF template, + i.e. 'modules/custom/os2forms_selvbetjening/src/templates/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig'. + + This is a composition of + os2forms_attachment, os2forms-attachment--webform-submission.html.twig, and + os2forms_forloeb, os2forms-forloeb-notification-message-pdf-html.html.twig. + +/** + * @file + * Template for Maestro notification PDF. + * + * Available variables: + * - message: The notification message + * - subject: the notification subject + * - content: the notification content. Must be rendered as `processed_text`, i.e.: + * @code + * {{ { + * '#type': 'processed_text', + * '#text': message.content.value, + * '#format': message.content.format, + * } }} + * @endcode + * - notification_type: The type of notification () + * - task_url: URL of the task. + * - action_label: Optional label for the task action. + */ +#} + + + + + + {{ message.subject }} + + + +
+
+

+ Aarhus Kommune Logo +
+

+
+
+ +
+
+
+

[webform_submission:completed:custom:d. F Y]

+

Aarhus Kommune
+ Rådhuspladsen 2
+ 8000 Aarhus C

+
+
+ {# @see https://api.drupal.org/api/drupal/core%21modules%21filter%21filter.module/function/check_markup/9 #} +
+ {{ { + '#type': 'processed_text', + '#text': message.content.value, + '#format': message.content.format, + } }} +
+
+
+
+ + + + +