From b5e72a1a6753a6b5cd56068dc55373c8857cfbce Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Tue, 21 Jul 2020 11:24:22 +0200 Subject: [PATCH] Display beginning date instead of end date of the first revision on testimonials --- teleforma/templates/teleforma/seminar_testimonial.html | 2 +- .../templates/teleforma/seminar_testimonial_knowledge.html | 2 +- .../templates/teleforma/seminar_testimonial_payback.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_testimonial.html b/teleforma/templates/teleforma/seminar_testimonial.html index 5f5bb244..03eb5ecb 100644 --- a/teleforma/templates/teleforma/seminar_testimonial.html +++ b/teleforma/templates/teleforma/seminar_testimonial.html @@ -38,7 +38,7 @@ {% trans "Course" %} : {{ seminar.course }} {% trans "Training type" %} : E-learning {% trans "Duration" %} : {{ seminar.duration|hours }} {% trans "hours" %} - {% 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 "Training begin date" %} : {{ first_revision.date|date:'j F Y' }} {% trans "Training end date" %} : {% if testimonial.date_modified %}{{ testimonial.date_modified|date:'j F Y' }}{% else %}{{ testimonial.date_added|date:'j F Y' }}{% endif %} diff --git a/teleforma/templates/teleforma/seminar_testimonial_knowledge.html b/teleforma/templates/teleforma/seminar_testimonial_knowledge.html index f85f237b..0502511b 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" %} : {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'j F Y' }}{% else %}{{ first_revision.date|date:'j F Y' }}{% endif %} + {% trans "Training begin date" %} : {{ first_revision.date|date:'j F Y' }} {% trans "Knowledge validation dates and terms" %} : {% for answer in answers %} {% trans "Answer" %} n°{{ answer.question.rank }} : {% if testimonial.date_modified and testimonial.date_modified < answer.date_validated %}{{ testimonial.date_modified|date:'j F Y' }}{% else %}{{ answer.date_validated|date:'j F Y' }}{% endif %} diff --git a/teleforma/templates/teleforma/seminar_testimonial_payback.html b/teleforma/templates/teleforma/seminar_testimonial_payback.html index 0bb5a2f6..6af7f052 100644 --- a/teleforma/templates/teleforma/seminar_testimonial_payback.html +++ b/teleforma/templates/teleforma/seminar_testimonial_payback.html @@ -128,13 +128,13 @@
- {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'j' }}{% else %}{{ first_revision.date|date:'j' }}{% endif %} + {{ first_revision.date|date:'j' }}
- {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'m' }}{% else %}{{ first_revision.date|date:'m' }}{% endif %} + {{ first_revision.date|date:'m' }}
- {% if first_revision.date_modified %}{{ first_revision.date_modified|date:'y' }}{% else %}{{ first_revision.date|date:'y' }}{% endif %} + {{ first_revision.date|date:'y' }}
-- 2.39.5