]> git.parisson.com Git - teleforma.git/commitdiff
fix email recipient name
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 13 Feb 2014 01:10:27 +0000 (02:10 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 13 Feb 2014 01:10:27 +0000 (02:10 +0100)
teleforma/templates/postman/email_user.txt
teleforma/templates/postman/email_user_init.txt

index 7fac13d6a47b9dc01360b618cb7b434e6e95ad0b..f4d769ca1cd3cb757ee3c63a7091bda576c53e10 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n %}{% load telemeta_utils %}{% load teleforma_tags %}{% autoescape off %}{% trans "Hello" %} {{ usr.first_name }} {{ usr.last_name }},
+{% load i18n %}{% load telemeta_utils %}{% load teleforma_tags %}{% autoescape off %}{% trans "Hello" %} {{ object.recipient.first_name }} {{ object.recipient.last_name }},
 {% if action == 'rejection' %}
 {% blocktrans with object.sent_at|date:"DATETIME_FORMAT" as date and object.obfuscated_recipient as recipient %}On {{ date }}, you asked to send a message to the user '{{ recipient }}'.{% endblocktrans %}
 
@@ -20,4 +20,4 @@ http://{{ site.domain }}/messages/inbox/
 {% trans "The site administrator" %} {% trans "of" %} {% organization %}
 
 {% blocktrans %}Note: This message is issued by an automated system.
-Do not reply, this would not be taken into account.{% endblocktrans %}{% endautoescape %}
\ No newline at end of file
+Do not reply, this would not be taken into account.{% endblocktrans %}{% endautoescape %}
index 3650a22957277cd2d51db74eb0ceee324ccc080e..80ef37e8570dcc33abc4df06c4f6bba0611c7b2d 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n %}{% load telemeta_utils %}{% load teleforma_tags %}{% autoescape off %}{% trans "Hello" %} {{ usr.first_name }} {{ usr.last_name }},
+{% load i18n %}{% load telemeta_utils %}{% load teleforma_tags %}{% autoescape off %}{% trans "Hello" %} {{ object.recipient.first_name }} {{ object.recipient.last_name }},
 
 Suite à votre inscription à la formation semestrielle 2014 du Pré-Barreau, nous vous invitons à initialiser votre compte sur notre plateforme e-learning interactive et multi-média. Pour cela, merci de cliquer sur le lien suivant puis d'indiquez votre adresse e-mail :
 
@@ -9,7 +9,7 @@ Une fois la procédure accomplie, vous pourrez vous connecter à l'adresse suiva
 
 http://{{ site.domain }}
 
-à l'aide de votre nom d'utilisateur : {{ usr.username }}
+à l'aide de votre nom d'utilisateur : {{ object.recipient.username }}
 
 Cette plateforme vous permet d’accéder tout au long de votre formation aux différents documents - fascicules de cours (selon la formule choisie), fascicules d’actualisation, sujets et corrigés - ainsi qu’à l’ensemble de vos enseignements à la demande ou en direct.
 
@@ -21,4 +21,4 @@ Une page d'aide est disponible pour vous assister lors de la découverte de ces
 
 
 {% blocktrans %}Note: This message is issued by an automated system.
-Do not reply, this would not be taken into account.{% endblocktrans %}{% endautoescape %}
\ No newline at end of file
+Do not reply, this would not be taken into account.{% endblocktrans %}{% endautoescape %}