<style>
@page :first {
- background: url(https://{{ site.domain }}/{{ STATIC_URL }}teleforma/images/attestation_fifpl_v3.png) no-repeat center;
+ background: url(https://{{ site.domain }}/{{ STATIC_URL }}teleforma/images/attestation_fifpl_v4.png) no-repeat center;
background-size: cover;
margin: 0;
}
#user {
position: absolute;
- top: 315px;
- left: 330px;
+ top: 380px;
+ left: 200px;
}
#seminar {
position: absolute;
- top: 380px;
- left: 160px;
+ top: 420px;
+ left: 60px;
}
#date_start_d {
position: absolute;
- top: 412px;
- left: 187px;
+ top: 460px;
+ left: 395px;
}
#date_start_m {
position: absolute;
- top: 412px;
- left: 215px;
+ top: 460px;
+ left: 430px;
}
#date_start_y {
position: absolute;
- top: 412px;
- left: 242px;
+ top: 460px;
+ left: 475px;
}
#date_end_d {
position: absolute;
- top: 412px;
- left: 285px;
+ top: 460px;
+ left: 595px;
}
#date_end_m {
position: absolute;
- top: 412px;
- left: 312px;
+ top: 460px;
+ left: 630px;
}
#date_end_y {
position: absolute;
- top: 412px;
- left: 340px;
+ top: 460px;
+ left: 675px;
}
- #user-hours {
+ {% comment %} #user-hours {
position: absolute;
top: 445px;
left: 470px;
+ } {% endcomment %}
+
+ #seminar-semi-days {
+ position: absolute;
+ top: 530px;
+ left: 172px;
+ }
+ #seminar-days {
+ position: absolute;
+ top: 530px;
+ left: 366px;
+ }
+ #seminar-presentiel-hours {
+ position: absolute;
+ top: 530px;
+ left: 550px;
+ }
+ #seminar-elearning-hours {
+ position: absolute;
+ top: 676px;
+ left: 172px;
}
- #seminar-hours {
+
+ #nb-parts {
position: absolute;
- top: 525px;
- left: 280px;
+ top: 676px;
+ left: 366px;
}
+
+
#price-ht {
position: absolute;
- top: 629px;
- left: 440px;
+ top: 798px;
+ left: 265px;
}
#price-ttc {
position: absolute;
- top: 644px;
- left: 190px;
+ top: 798px;
+ left: 430px;
}
#date-validated {
position: absolute;
- top: 549px;
- left: 360px;
+ top: 676px;
+ left: 550px;
}
#date-now {
position: absolute;
- top: 718px;
- left: 320px;
+ top: 920px;
+ left: 94px;
}
<div id="seminar">
- {{ seminar.title }}
+ {{ title }}
</div>
+
<div id="date_start_d" class="date">
{{ first_revision.date|date:'j' }}
</div>
{{ first_revision.date|date:'m' }}
</div>
<div id="date_start_y">
- {{ first_revision.date|date:'y' }}
+ {{ first_revision.date|date:'yy' }}
</div>
<div id="date_end_d">
{% if testimonial.date_modified %}{{ testimonial.date_modified|date:'m' }}{% else %}{{ testimonial.date_added|date:'m' }}{% endif %}
</div>
<div id="date_end_y">
- {% if testimonial.date_modified %}{{ testimonial.date_modified|date:'y' }}{% else %}{{ testimonial.date_added|date:'y' }}{% endif %}
+ {% if testimonial.date_modified %}{{ testimonial.date_modified|date:'y' }}{% else %}{{ testimonial.date_added|date:'yy' }}{% endif %}
</div>
+{% if blended %}
+<div id="seminar-semi-days">
+ {{ nb_semi_days }}
+</div>
+<div id="seminar-days">
+ {{ nb_days }}
+</div>
+<div id="seminar-presentiel-hours">
+ {{ hours_presentiel }}
+</div>
+{% endif %}
-<div id="user-hours">
- {{ seminar.duration|hours }}
+<div id="seminar-elearning-hours">
+ {{ hours_elearning|hours }}
</div>
-<div id="seminar-hours">
- {{ seminar.duration|hours }}
+<div id="nb-parts">
+ {{ nb_parts }}
</div>
<div id="price-ht">
if testimonials:
context['testimonial'] = testimonials[0]
+ context['hours_presentiel'] = 0
+ context['hours_elearning'] = seminar.duration
context['blended'] = False
if seminar.conference:
if seminar.conference.webclass and seminar.conference in self.request.user.auditor.get().conferences.all():
context['blended'] = True
context['conference'] = seminar.conference
+ context['hours_presentiel'] = (seminar.duration.as_seconds() - seminar.conference.webclass_hours_complementary.as_seconds()) / 3600
+ context['hours_elearning'] = seminar.conference.webclass_hours_complementary
+
+ hours = seminar.duration.as_seconds() / 3600
+ context['nb_parts'] = seminar.is_multipart and seminar.number_of_parts or 5
+ context['nb_days'] = int(hours / 6)
+ context['nb_semi_days'] = (hours / 3 ) % 2 >= 1 and 1 or 0
+ context['title'] = seminar.title
+ if seminar.level == "Spécialisation":
+ context['title'] = seminar.course.title + " - " + seminar.title
return context