Mail sending
* adds mail sending logic for new notification setting * adds new templates for user and team based sending * enhances all email template layout * adds translations
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<article>
|
||||
{% trans 'Hello support' %},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'you need to verify the API token for user' %}:
|
||||
<br>
|
||||
<br>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been checked' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been checked' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been deleted' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been deleted' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
50
templates/email/other/deduction_changed.html
Normal file
50
templates/email/other/deduction_changed.html
Normal file
@@ -0,0 +1,50 @@
|
||||
{% load i18n %}
|
||||
|
||||
<div>
|
||||
<h2>{% translate 'Deduction changed' %}</h2>
|
||||
<h4>{{obj_identifier}}</h4>
|
||||
<hr>
|
||||
<article>
|
||||
{% translate 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'a deduction of this eco account has changed:' %}
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<th scope="col">{% translate 'Attribute' %}</th>
|
||||
<th scope="col">{% translate 'Old' %}</th>
|
||||
<th scope="col">{% translate 'New' %}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'EcoAccount' %}</td>
|
||||
<td>{{data_changes.account.old}}</td>
|
||||
<td>{{data_changes.account.new}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'Intervention' %}</td>
|
||||
<td>{{data_changes.intervention.old}}</td>
|
||||
<td>{{data_changes.intervention.new}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'Surface' %}</td>
|
||||
<td>{{data_changes.surface.old}} m²</td>
|
||||
<td>{{data_changes.surface.new}} m²</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'If this should not have been happened, please contact us. See the signature for details.' %}
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'Best regards' %}
|
||||
<br>
|
||||
KSP
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
{% include 'email/signature.html' %}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
50
templates/email/other/deduction_changed_team.html
Normal file
50
templates/email/other/deduction_changed_team.html
Normal file
@@ -0,0 +1,50 @@
|
||||
{% load i18n %}
|
||||
|
||||
<div>
|
||||
<h2>{% translate 'Deduction changed' %}</h2>
|
||||
<h4>{{obj_identifier}}</h4>
|
||||
<hr>
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'a deduction of this eco account has changed:' %}
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<th scope="col">{% translate 'Attribute' %}</th>
|
||||
<th scope="col">{% translate 'Old' %}</th>
|
||||
<th scope="col">{% translate 'New' %}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'EcoAccount' %}</td>
|
||||
<td>{{data_changes.account.old}}</td>
|
||||
<td>{{data_changes.account.new}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'Intervention' %}</td>
|
||||
<td>{{data_changes.intervention.old}}</td>
|
||||
<td>{{data_changes.intervention.new}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% translate 'Surface' %}</td>
|
||||
<td>{{data_changes.surface.old}} m²</td>
|
||||
<td>{{data_changes.surface.new}} m²</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'If this should not have been happened, please contact us. See the signature for details.' %}
|
||||
<br>
|
||||
<br>
|
||||
{% translate 'Best regards' %}
|
||||
<br>
|
||||
KSP
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
{% include 'email/signature.html' %}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been recorded' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been recorded' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been unrecorded' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been unrecorded' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been shared with you' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'the following dataset has just been shared with your team' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello ' %} {{user.username}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'your shared access, including editing, has been revoked for the dataset ' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<article>
|
||||
{% trans 'Hello team' %} {{team.name}},
|
||||
<br>
|
||||
<br>
|
||||
{% trans 'your teams shared access, including editing, has been revoked for the dataset ' %}
|
||||
<br>
|
||||
<strong>{{obj_identifier}}</strong>
|
||||
|
||||
Reference in New Issue
Block a user