From ced91f7114329289c2d4d18714a55e5d4b018440 Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 5 Mar 2024 17:29:01 +0100 Subject: [PATCH] [#2169] Improved mail-template syntax --- .../parts/case_document_notification.html | 2 +- .../conf/parts/case_status_notification.html | 2 +- ...e_status_notification_action_required.html | 2 +- src/open_inwoner/conf/parts/maileditor.py | 20 +++++++++++++++++++ src/open_inwoner/static/mailcss/email.css | 2 +- src/open_inwoner/templates/mail/_base.html | 2 +- 6 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/open_inwoner/conf/parts/case_document_notification.html b/src/open_inwoner/conf/parts/case_document_notification.html index 592172c34a..cf655bccc0 100644 --- a/src/open_inwoner/conf/parts/case_document_notification.html +++ b/src/open_inwoner/conf/parts/case_document_notification.html @@ -78,7 +78,7 @@

{{ type_description }}

Ga naar onze contactpagina

-

{{contact_phonenumber}}

+

Bel {{ contact_phonenumber }}

diff --git a/src/open_inwoner/conf/parts/case_status_notification.html b/src/open_inwoner/conf/parts/case_status_notification.html index c7a8a0b16b..bce1c2a2f5 100644 --- a/src/open_inwoner/conf/parts/case_status_notification.html +++ b/src/open_inwoner/conf/parts/case_status_notification.html @@ -78,7 +78,7 @@

{{ type_description }}

Ga naar onze contactpagina

-

{{ contact_phonenumber }}

+

Bel {{ contact_phonenumber }}

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 730bd08cf9..7361897045 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 @@ -75,7 +75,7 @@

{{ type_description }}

Ga naar onze contactpagina

-

{{ contact_phonenumber }}

+

Bel {{ contact_phonenumber }}

diff --git a/src/open_inwoner/conf/parts/maileditor.py b/src/open_inwoner/conf/parts/maileditor.py index 0256304af1..d8827da0d1 100644 --- a/src/open_inwoner/conf/parts/maileditor.py +++ b/src/open_inwoner/conf/parts/maileditor.py @@ -241,6 +241,10 @@ def _readfile(name): "name": "contact_page", "description": _("The link to an existing contactpage"), }, + { + "name": "contact_phonenumber", + "description": _("The callable link to the configured phonenumber"), + }, { "name": "profile_notifications", "description": _( @@ -294,6 +298,14 @@ def _readfile(name): "name": "site_name", "description": _("Name of the site"), }, + { + "name": "contact_page", + "description": _("The link to an existing contactpage"), + }, + { + "name": "contact_phonenumber", + "description": _("The callable link to the configured phonenumber"), + }, { "name": "profile_notifications", "description": _( @@ -350,6 +362,14 @@ def _readfile(name): "name": "site_name", "description": _("Name of the site"), }, + { + "name": "contact_page", + "description": _("The link to an existing contactpage"), + }, + { + "name": "contact_phonenumber", + "description": _("The callable link to the configured phonenumber"), + }, { "name": "profile_notifications", "description": _( diff --git a/src/open_inwoner/static/mailcss/email.css b/src/open_inwoner/static/mailcss/email.css index 39e15a9274..0965bcd66f 100644 --- a/src/open_inwoner/static/mailcss/email.css +++ b/src/open_inwoner/static/mailcss/email.css @@ -154,7 +154,7 @@ td.align-center { } .td__rightcell.td__nowrap { - min-width: 300px; + min-width: 200px; } .spacing__extra { diff --git a/src/open_inwoner/templates/mail/_base.html b/src/open_inwoner/templates/mail/_base.html index f4070afe77..3e11c4c10a 100644 --- a/src/open_inwoner/templates/mail/_base.html +++ b/src/open_inwoner/templates/mail/_base.html @@ -137,7 +137,7 @@ .button--primary { background-color: {{ theming.primary_color }}; - border: 1px solid{{ theming.primary_color }}; + border: 1px solid {{ theming.primary_color }}; } .td-mail__bg-accent {