From: Guillaume Pellerin Date: Thu, 13 Feb 2014 01:10:27 +0000 (+0100) Subject: fix email recipient name X-Git-Tag: 1.1~493 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=029c58b920f216a1314a754c3ac4eb066f674c6d;p=teleforma.git fix email recipient name --- diff --git a/teleforma/templates/postman/email_user.txt b/teleforma/templates/postman/email_user.txt index 7fac13d6..f4d769ca 100644 --- a/teleforma/templates/postman/email_user.txt +++ b/teleforma/templates/postman/email_user.txt @@ -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 %} diff --git a/teleforma/templates/postman/email_user_init.txt b/teleforma/templates/postman/email_user_init.txt index 3650a229..80ef37e8 100644 --- a/teleforma/templates/postman/email_user_init.txt +++ b/teleforma/templates/postman/email_user_init.txt @@ -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 %}