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 translationspull/195/head
parent
4138481a1b
commit
ff26019b6e
Binary file not shown.
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue