From 69b958d5ff2563961162739d7853345039d3f00b Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 30 Jan 2024 12:09:22 +0100 Subject: [PATCH] :alembic: [#2059] Added static mail template --- src/open_inwoner/conf/parts/maileditor.py | 20 ++-- .../case_document_notification.html | 76 ++++++++++++ .../case_status_notification.html | 76 ++++++++++++ ...e_status_notification_action_required.html | 111 ++++++++++++++++++ 4 files changed, 273 insertions(+), 10 deletions(-) create mode 100644 src/open_inwoner/templates/pages/cases/mail-templates/case_document_notification.html create mode 100644 src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification.html create mode 100644 src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification_action_required.html diff --git a/src/open_inwoner/conf/parts/maileditor.py b/src/open_inwoner/conf/parts/maileditor.py index 8b851a898e..de000eafa9 100644 --- a/src/open_inwoner/conf/parts/maileditor.py +++ b/src/open_inwoner/conf/parts/maileditor.py @@ -96,7 +96,7 @@ ), "subject_default": "New messages at {{ site_name }}", "body_default": """ -

Beste

+

Dear

You've received {{ total_messages }} new messages from {{ total_senders }} users

@@ -137,7 +137,7 @@ ), "subject_default": "Actions about to end today at {{ site_name }}", "body_default": """ -

Beste

+

Dear

You are receiving this email because you have some actions that are expiring.

@@ -187,7 +187,7 @@ ), "subject_default": "Plans about to end today at {{ site_name }}", "body_default": """ -

Beste

+

Dear

You are receiving this email because you have some plans that are expiring.

@@ -239,7 +239,7 @@ ), "subject_default": "Plan action has been updated at {{ site_name }}", "body_default": """ -

Beste

+

Dear

You are receiving this email because the action in your plan was updated.

@@ -357,22 +357,22 @@ ), "subject_default": "Uw zaak is bijgewerkt op {{ site_name }}", "body_default": """ -

Beste

+

Beste inwoner,

-

U ontvangt deze email, omdat er bij een van uw zaken een document als bijlage is toegevoegd.

+

Er is een update over één van uw aanvragen beschikbaar:

- + - + - +
Zaakidentificatie{{ identification }}{{ identification }}
Zaaktype{{ type_description }}{{ type_description }}
Startdatum{{ start_date }}{{ start_date }}
@@ -415,7 +415,7 @@ "description": _("This email is used to register a contact form submission"), "subject_default": "Contact formulier inzending vanaf {{ site_name }}", "body_default": """ -

Beste

+

Dear

diff --git a/src/open_inwoner/templates/pages/cases/mail-templates/case_document_notification.html b/src/open_inwoner/templates/pages/cases/mail-templates/case_document_notification.html new file mode 100644 index 0000000000..aa5d577688 --- /dev/null +++ b/src/open_inwoner/templates/pages/cases/mail-templates/case_document_notification.html @@ -0,0 +1,76 @@ +{% load i18n %} + +{% trans "Uw zaak is bijgewerkt op {{ site_name }}" %}, + +{% trans "U ontvangt deze email, omdat er bij een van uw zaken een document als bijlage is toegevoegd. " %}{{ domain }}{% trans " you requested a password reset." %} +{% trans "Please go to the following page and choose a new password: " %} + +{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} + +{% trans "Your username, in case you’ve forgotten: " %}{{ user.get_username }} + +{% trans "With kind regards" %}, +{{ site_name }} + + +{# Form python template: #} +{# "case_document_notification": {#} +{# "name": _("Case document update notification"),#} +{# "description": _(#} +{# "This email is used to notify people that a new document was added to their case"#} +{# ),#} +{# "subject_default": "Uw zaak is bijgewerkt op {{ site_name }}",#} +{# "body_default": """#} +{# #} +{#

Beste

#} +{##} +{#

U ontvangt deze email, omdat er bij een van uw zaken een document als bijlage is toegevoegd.

#} +{##} +{#
#} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{#
Zaakidentificatie{{ identification }}
Zaaktype{{ type_description }}
Startdatum{{ start_date }}
#} +{##} +{#

Ga naar uw zaak

#} +{##} +{#

Met vriendelijke groet,#} +{# {{ site_name }}

#} +{# """,#} +{# "subject": [#} +{# {#} +{# "name": "site_name",#} +{# "description": _("Name of the site."),#} +{# },#} +{# ],#} +{# "body": [#} +{# {#} +{# "name": "identification",#} +{# "description": _("The identification of the case"),#} +{# },#} +{# {#} +{# "name": "type_description",#} +{# "description": _("The description of the type of the case"),#} +{# },#} +{# {#} +{# "name": "start_date",#} +{# "description": _("The start date of the case"),#} +{# },#} +{# {#} +{# "name": "case_link",#} +{# "description": _("The link to the case details."),#} +{# },#} +{# {#} +{# "name": "site_name",#} +{# "description": _("Name of the site"),#} +{# },#} +{# ],#} diff --git a/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification.html b/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification.html new file mode 100644 index 0000000000..5d4fef9faa --- /dev/null +++ b/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification.html @@ -0,0 +1,76 @@ +{% load i18n %} + +{% trans "Uw zaak is bijgewerkt op {{ site_name }}" %}, + +{% trans "U ontvangt deze email, omdat de status van een van uw zaken is bijgewerkt. " %}{{ domain }}{% trans " you requested a password reset." %} +{% trans "Please go to the following page and choose a new password: " %} + +{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} + +{% trans "Your username, in case you’ve forgotten: " %}{{ user.get_username }} + +{% trans "With kind regards" %}, +{{ site_name }} + + +{# From python template: #} +{# "case_status_notification": {#} +{# "name": _("Case status update notification"),#} +{# "description": _(#} +{# "This email is used to notify people about a new status being set on their case"#} +{# ),#} +{# "subject_default": "Uw zaak is bijgewerkt op {{ site_name }}",#} +{# "body_default": """#} +{#

Beste

#} +{##} +{#

U ontvangt deze email, omdat de status van een van uw zaken is bijgewerkt.

#} +{##} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{#
Zaakidentificatie{{ identification }}
Zaaktype{{ type_description }}
Startdatum{{ start_date }}
#} +{##} +{#

Ga naar uw zaak

#} +{##} +{#

Met vriendelijke groet,#} +{# {{ site_name }}

#} +{# """,#} +{# "subject": [#} +{# {#} +{# "name": "site_name",#} +{# "description": _("Name of the site."),#} +{# },#} +{# ],#} +{# "body": [#} +{# {#} +{# "name": "identification",#} +{# "description": _("The identification of the case"),#} +{# },#} +{# {#} +{# "name": "type_description",#} +{# "description": _("The description of the type of the case"),#} +{# },#} +{# {#} +{# "name": "start_date",#} +{# "description": _("The start date of the case"),#} +{# },#} +{# {#} +{# "name": "case_link",#} +{# "description": _("The link to the case details."),#} +{# },#} +{# {#} +{# "name": "site_name",#} +{# "description": _("Name of the site"),#} +{# },#} +{# ],#} +{# },#} diff --git a/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification_action_required.html b/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification_action_required.html new file mode 100644 index 0000000000..2ac4c47e8d --- /dev/null +++ b/src/open_inwoner/templates/pages/cases/mail-templates/case_status_notification_action_required.html @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+

Beste inwoner,

+

Er is een update over één van uw aanvragen beschikbaar:

+
+

Update

+
+

Aanvraag:
Bijzondere bijstand aanvragen

+
+

Zaaknummer:
4500-2023-1010

+
+ +
+ +
+ +
+

U hoeft niets te doen. Zodra er weer een update beschikbaar is ontvangt u hier een melding over.

+

Bekijk aanvraag →

+
+

Met vriendelijke groet,

+

 

+

Gemeente Groningen

+

 

+

 

+
+

Dit bericht is automatisch verzonden. U kunt niet reageren op deze e-mail.

+
+

Contact opnemen

+

Wilt u contact opnemen met ons?

+
Bekijk onze contactpagina📞 Bel naar 14050
+
+
+

Liever geen e-mail notificaties ontvangen? U kunt zich hier uitschrijven

+