Skip to content

Commit

Permalink
Merge pull request #1001 from maykinmedia/feature/2055-status-notific…
Browse files Browse the repository at this point in the history
…ations

[#2055] Add option to use different email tamplate for status notifications that require action
  • Loading branch information
alextreme authored Feb 5, 2024
2 parents e8471d8 + 32ba6a1 commit 3f7430c
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 92 deletions.
61 changes: 61 additions & 0 deletions src/open_inwoner/conf/parts/maileditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,67 @@
},
],
},
"case_status_notification_action_required": {
"name": _("Case status update notification (action required)"),
"description": _(
"This email is used to notify people about a new status being set on their case "
"that requires action on their part."
),
"subject_default": "Uw zaak is bijgewerkt op {{ site_name }} (actie vereist)",
"body_default": """
<p>Beste</p>
<p>U ontvangt deze email, omdat de status van een van uw zaken is bijgewerkt.</p>
<table>
<tr>
<th>Zaakidentificatie</th>
<td>{{ identification }}</td>
</tr>
<tr>
<th>Zaaktype</th>
<td>{{ type_description }}</td>
</tr>
<tr>
<th>Startdatum</th>
<td>{{ start_date }}</td>
</tr>
</table>
<p><a href="{{ case_link }}">Ga naar uw zaak</a> </p>
<p>Met vriendelijke groet,
{{ site_name }} </p>
""",
"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"),
},
],
},
"contactform_registration": {
"name": _("Contact form registration notification"),
"description": _("This email is used to register a contact form submission"),
Expand Down
1 change: 1 addition & 0 deletions src/open_inwoner/openzaak/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class ZaakTypeStatusTypeConfigInline(admin.StackedInline):
"status_indicator",
"status_indicator_text",
"notify_status_change",
"action_required",
"document_upload_enabled",
"document_upload_description",
"description",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 3.2.23 on 2024-01-30 14:23

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("openzaak", "0042_case_notification_mail_template_split"),
]

operations = [
migrations.AddField(
model_name="zaaktypestatustypeconfig",
name="action_required",
field=models.BooleanField(
default=False,
help_text="Whether the status change notification should indicate that an action is required",
verbose_name="Action required",
),
),
]
7 changes: 7 additions & 0 deletions src/open_inwoner/openzaak/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,13 @@ class ZaakTypeStatusTypeConfig(models.Model):
"Whether the user should be notfied if a case is set to this type of status"
),
)
action_required = models.BooleanField(
verbose_name=_("Action required"),
default=False,
help_text=_(
"Whether the status change notification should indicate that an action is required"
),
)
document_upload_enabled = models.BooleanField(
default=True,
verbose_name=_("Document uploads"),
Expand Down
Loading

0 comments on commit 3f7430c

Please sign in to comment.