From 4fb929aa3b2c93101646f7b89a0817ce231d0f2f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 28 Jun 2013 16:43:14 +0200 Subject: [PATCH] fix testimonials --- .../templates/teleforma/seminar_testimonial_knowledge.html | 2 +- teleforma/templates/teleforma/seminar_testimonial_payback.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_testimonial_knowledge.html b/teleforma/templates/teleforma/seminar_testimonial_knowledge.html index a3a4d479..dc186333 100644 --- a/teleforma/templates/teleforma/seminar_testimonial_knowledge.html +++ b/teleforma/templates/teleforma/seminar_testimonial_knowledge.html @@ -38,7 +38,7 @@ {% trans "Course" %} : {{ seminar.course }} {% trans "Duration" %} : {{ seminar.duration|hours }} {% trans "hours" %} {% trans "Validation mode of the training" %} : {% trans "Reply to questions" %} - {% trans "Training begin date" %} : {{ first_revision.date|date:'j F Y' }} + {% trans "Training begin date" %} : {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'j F Y' }}{% else %}{{ first_revision.date|date:'j F Y' }}{% endif %} {% trans "Knowledge validation dates and terms" %} : {% for answer in answers %} {% trans "Answer" %} n°{{ answer.question.rank }} : {{ answer.date_validated|date:'j F Y' }} diff --git a/teleforma/templates/teleforma/seminar_testimonial_payback.html b/teleforma/templates/teleforma/seminar_testimonial_payback.html index a884ef07..878dbdbe 100644 --- a/teleforma/templates/teleforma/seminar_testimonial_payback.html +++ b/teleforma/templates/teleforma/seminar_testimonial_payback.html @@ -87,7 +87,7 @@
- {{ first_revision.date|date:'j F Y' }} {% trans "until" %} {% if testimonial.date_modified %}{{ testimonial.date_modified|date:'j F Y' }}{% else %}{{ testimonial.date_added|date:'j F Y' }}{% endif %} + {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'j F Y' }}{% else %}{{ first_revision.date|date:'j F Y' }}{% endif %} {% trans "until" %} {% if testimonial.date_modified %}{{ testimonial.date_modified|date:'j F Y' }}{% else %}{{ testimonial.date_added|date:'j F Y' }}{% endif %}
-- 2.39.5