From 01a207afd70ac4d9e752af81b7b5d4c355787374 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Fri, 30 Oct 2020 17:04:29 +0100 Subject: [PATCH] Update testimonial for webclass --- .../templates/teleforma/seminar_testimonial.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_testimonial.html b/teleforma/templates/teleforma/seminar_testimonial.html index 03eb5ecb..900fa609 100644 --- a/teleforma/templates/teleforma/seminar_testimonial.html +++ b/teleforma/templates/teleforma/seminar_testimonial.html @@ -36,8 +36,19 @@ {% trans "Address" %} : {{ testimonial.user.auditor.all.0.address }} {{ testimonial.user.auditor.all.0.postal_code }} {{ testimonial.user.auditor.all.0.city }} {% trans "Object" %} : {{ seminar.title }} {% trans "Course" %} : {{ seminar.course }} - {% trans "Training type" %} : E-learning - {% trans "Duration" %} : {{ seminar.duration|hours }} {% trans "hours" %} + {% trans "Training type" %} : {% if seminar.conference and seminar.conference.webclass %}Blended-learning{% else %}E-learning{% endif %} + {% trans "Duration" %} : + {{ seminar.duration|hours }} {% trans "hours" %} + {% if seminar.conference and seminar.conference.webclass %} + {% with conference=seminar.conference %} + {% if seminar.conference.webclass_hours_complementary %} + ({{conference.webclass_duration|fancy_seconds}} de webconférence en direct + {{conference.webclass_hours_complementary.as_seconds|fancy_seconds}} de + validation des acquis) +

+ {% endif %} + {% endwith %} + {% 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 %} -- 2.39.5