{% else %}{% blocktrans with object.sender.first_name as first_name and object.sender.last_name as last_name %}You have received a message from {{ first_name }} {{ last_name }}.{% endblocktrans %}
{% endif %}{% endif %}{% trans "You can read and respond to this message from your e-learning desk following this link:" %}
-http://{{ site.name }}/messages/inbox/
+http://{{ site.domain }}/messages/inbox/
{# 'acceptance' #}
{% trans "Thank you again for your interest in our services." %}
<div id="content">
<table class="table1">
- <tr><td class="bold">{% trans "Last name" %} : </td><td>{{ user.last_name|upper }}</td></tr>
- <tr><td class="bold">{% trans "First name" %} : </td><td>{{ user.first_name|upper }}</td></tr>
- <tr><td class="bold">{% trans "Address" %} : </td><td>{{ user.auditor.all.0.address }} {{ user.auditor.all.0.postal_code }} {{ user.auditor.all.0.city }}</td></tr>
+ <tr><td class="bold">{% trans "Last name" %} : </td><td>{{ testimonial.user.last_name|upper }}</td></tr>
+ <tr><td class="bold">{% trans "First name" %} : </td><td>{{ testimonial.user.first_name|upper }}</td></tr>
+ <tr><td class="bold">{% trans "Address" %} : </td><td>{{ testimonial.user.auditor.all.0.address }} {{ testimonial.user.auditor.all.0.postal_code }} {{ testimonial.user.auditor.all.0.city }}</td></tr>
<tr><td class="bold">{% trans "Sujet" %} : </td><td>{{ seminar.title }}</td></tr>
<tr><td class="bold">{% trans "Course" %} : </td><td>{{ seminar.course }}</td></tr>
<tr><td class="bold">{% trans "Training type" %} : </td><td>E-learning</td></tr>
v = _('validated')
subject = '%s : %s - %s %s' % (seminar.title, a, str(context['rank']), v)
- mess = Message(sender=sender, recipient=user, subject=subject[:120], body=text)
+ mess = Message(sender=sender, recipient=user, subject=subject[:119], body=text)
mess.moderation_status = 'a'
mess.save()
notify_user(mess, 'acceptance')