Update the influence_changed email template to the changes in the Influence model.
[matthijs/projects/xerxes.git] / templates / influences / email / influence_changed.html
index ee08310c79718fce18ed9eca42ac29a947f64798..ac59c93f60db0062846511b0b7a4dd21b56dbae4 100644 (file)
@@ -1,5 +1,6 @@
 {% load gapless %}{% gapless %}
 {% load i18n %}
+{% load list %}
 {% autoescape off %}
 From: Xerxes (Evolution Events)<xerxes@evolution-events.nl>
 X-Mailer: Xerxes
@@ -17,15 +18,17 @@ Subject: {% blocktrans %}Influence "{{ influence }}" was changed.{% endblocktran
 \\
 {% filter wordwrap:72 %}
 {% blocktrans with influence.created|date:"j F Y" as creation_date %}
-You have submitted an influence on {{ creation_date }}.
+You are involved in this influence, submitted on {{ creation_date }}.
 {% endblocktrans %}
 {% if not created %}
 {% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}:
 {% endif %}
 {% endfilter %}
 \\
-{% filter ljust:20%}{% trans "Character" %}:{%endfilter%}{{ influence.character }}
-{% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }}
+{% filter ljust:20%}{% trans "Iniator" %}:{%endfilter%}{{ influence.initiator }}
+{% if influence.involved %}
+{% filter ljust:20%}{% trans "Involved" %}:{%endfilter%}{{ influence.involved|natural_list }}
+{% endif %}
 {% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }}
 {% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }}
 {% if influence.longterm %}