From 87a4be7f76d22f3d748b72ecaaa28dc619060935 Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 13 Feb 2024 12:58:03 +0100 Subject: [PATCH] [#2059] Made mail templates responsive, added placeholders --- .../conf/parts/case_status_notification.html | 16 ++++---- ...e_status_notification_action_required.html | 16 ++++---- src/open_inwoner/conf/parts/maileditor.py | 38 +++++++++---------- src/open_inwoner/static/mailcss/email.css | 4 +- src/open_inwoner/templates/mail/_base.html | 26 ++++++++++--- 5 files changed, 56 insertions(+), 44 deletions(-) diff --git a/src/open_inwoner/conf/parts/case_status_notification.html b/src/open_inwoner/conf/parts/case_status_notification.html index 1f5991cd44..566c6d587a 100644 --- a/src/open_inwoner/conf/parts/case_status_notification.html +++ b/src/open_inwoner/conf/parts/case_status_notification.html @@ -11,12 +11,12 @@

Nieuw:

- - + +

Aanvraag:

{{ type_description }}

- +

Zaaknummer:
{{ identification }}

@@ -32,7 +32,7 @@

{{ type_description }}

-

De status is gewijzigd naar {{ case_status }}.

+

De status is gewijzigd naar {{ type_description }}.

@@ -44,7 +44,7 @@

{{ type_description }}

U hoeft niets te doen. Zodra er weer een update beschikbaar is ontvangt u hier een melding over. U kunt wel inloggen om uw aanvraag te bekijken.

-

Log in

+

Log in

@@ -67,9 +67,9 @@

{{ type_description }}

- Ga naar onze contactpagina + Ga naar onze contactpagina - Bel 14050 + Bel 14050 @@ -78,7 +78,7 @@

{{ type_description }}

-

Pas hier uw voorkeuren aan voor de notificaties.

+

Pas hier uw voorkeuren aan voor de notificaties.

diff --git a/src/open_inwoner/conf/parts/case_status_notification_action_required.html b/src/open_inwoner/conf/parts/case_status_notification_action_required.html index fbf166b2c6..f77de79a33 100644 --- a/src/open_inwoner/conf/parts/case_status_notification_action_required.html +++ b/src/open_inwoner/conf/parts/case_status_notification_action_required.html @@ -11,12 +11,12 @@

Nieuw:

- - + +

Aanvraag:

-

{{ type_description }}

+

{{ type_description }}

- +

Zaaknummer:
{{ identification }}

@@ -68,10 +68,10 @@

{{ type_description }}

Contact opnemen

- - Ga naar onze contactpagina + + Ga naar onze contactpagina - Bel 14050 + Bel 14050 @@ -80,7 +80,7 @@

{{ type_description }}

-

U ontvangt deze e-mail notificatie zodat wij u op de hoogte kunnen houden van lorem ipsum dolor sit amet consectetur...

+

U ontvangt deze e-mail notificatie zodat wij u op de hoogte kunnen houden.

diff --git a/src/open_inwoner/conf/parts/maileditor.py b/src/open_inwoner/conf/parts/maileditor.py index ed47bff4da..6f5c95aa53 100644 --- a/src/open_inwoner/conf/parts/maileditor.py +++ b/src/open_inwoner/conf/parts/maileditor.py @@ -220,10 +220,6 @@ def _readfile(name): "name": "case_link", "description": _("The link to the case details."), }, - # { - # "name": "start_date", - # "description": _("The start date of the case"), - # }, { "name": "end_date", "description": _("The planned final date of the case"), @@ -232,14 +228,28 @@ def _readfile(name): "name": "case_link", "description": _("The link to the case details."), }, - { - "name": "case_status", - "description": _("The current status of the case."), - }, { "name": "site_name", "description": _("Name of the site"), }, + { + "name": "contactpage", + "description": _("The link to an existing contactpage"), + }, + { + "name": "profile_notifications", + "description": _( + "The link to the notifications and unsubscribe settings" + ), + }, + { + "name": "profile_page", + "description": _("The link to the user's profile page"), + }, + { + "name": "login_page", + "description": _("The link to the login page"), + }, ], }, "case_document_notification": { @@ -309,22 +319,10 @@ def _readfile(name): "name": "end_date", "description": _("The planned final date of the case"), }, - { - "name": "case_link", - "description": _("The link to the case details."), - }, - { - "name": "case_status", - "description": _("The current status of the case."), - }, { "name": "site_name", "description": _("Name of the site"), }, - { - "name": "site_logo", - "description": _("URL of the site logo."), - }, ], }, "contactform_registration": { diff --git a/src/open_inwoner/static/mailcss/email.css b/src/open_inwoner/static/mailcss/email.css index dcb8f97bd6..6a9cd32416 100644 --- a/src/open_inwoner/static/mailcss/email.css +++ b/src/open_inwoner/static/mailcss/email.css @@ -35,7 +35,7 @@ table, .table-mail { line-height: 24px; } -td, .td-mail { +td, .td-mail { /* --color-gray-dark */ color: #4B4B4B; font-family: Lato, Helvetica, Arial, sans-serif; @@ -47,7 +47,7 @@ td, .td-mail { .logo-mail { text-align: center; width: auto; - max-height: 53px; + max-height: 55px; max-width: 600px; } diff --git a/src/open_inwoner/templates/mail/_base.html b/src/open_inwoner/templates/mail/_base.html index ac99b93483..c64d9e248a 100644 --- a/src/open_inwoner/templates/mail/_base.html +++ b/src/open_inwoner/templates/mail/_base.html @@ -8,6 +8,7 @@ + +