]> git.parisson.com Git - teleforma.git/commitdiff
fix email site url, fix testimonial.user
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:01:02 +0000 (19:01 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:01:02 +0000 (19:01 +0200)
teleforma/templates/postman/email_user.txt
teleforma/templates/teleforma/seminar_testimonial.html
teleforma/views/pro.py

index 84537f353abda0655e1c9b72adcc27a8b9796d79..3abdf32df249f5e286444b2b3b7bcdbe3a606842 100644 (file)
@@ -13,7 +13,7 @@
 {% 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." %}
index 128dfd22dfc8614066de4d2fbb92a0b839caee6d..4190b622c8d7e2c2508e9ffffbb267b1ff553f2d 100644 (file)
@@ -31,9 +31,9 @@
 <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>
index ad54e06a6761b1086c4c4df3ff552a3395f3499e..4765cb2df56c2e96d723a3c7dc0fa9f33bb95971 100644 (file)
@@ -333,7 +333,7 @@ class AnswersView(ListView):
             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')