From b0cd1be4c1befd8d25a0dacd43b0183c4bb69ea2 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 13 Feb 2014 02:10:27 +0100 Subject: [PATCH] fix email recipient name --- teleforma/templates/postman/email_user.txt | 4 ++-- teleforma/templates/postman/email_user_init.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 fb50a2ec..87d6e8d8 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 Avocats Etrangers 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. La messagerie intégrée vous donne aussi la possibilité de communiquer avec les administrateurs et les professeurs. Une page d'aide sera bientôt disponible pour vous assister lors de la découverte de ces nouveaux services. -- 2.39.5