{% if room.level.cycle.section.name == "Francophone" %} {{ year.wording }}    /    {{ quater.wording }} {% else %} {{ year.wording }}    /    {{ quater.wording }} {% endif %}
{% if room.level.cycle.section.name == "Francophone" %} CLASSE {% else %} CLASS NAME {% endif %} : {{ room.name }} TITULAIRE : {{ mainTeacher.fullName }}

{% set totalCoef = 0 %} {% for module in room.modules %} {% for course in module.courses %} {% if course.id in checkedValues %} {% set totalCoef = totalCoef + course.coefficient %} {% endif %} {% endfor %} {% endfor %} {% set s1 = quater.sequences[0].wording| slice(-1) %} {% set s2 = quater.sequences[1].wording| slice(-1) %} {% for module in room.modules %} {% for course in module.courses %} {% if course.id in checkedValues %} {% endif %} {% endfor %} {% endfor %} {% for std in students %} {% set totalCoef1 = 0 %} {% set totalCoef2 = 0 %} {% set totalNCoef1 = 0 %} {% set totalNCoef2 = 0 %} {% for data in datas[std.id] %} {% if data is not null %} {% set totalCoef1 = totalCoef1 + data["weight1"]*data["coef"] %} {% set totalCoef2 = totalCoef2 + data["weight2"]*data["coef"] %} {% set totalNCoef1 = totalNCoef1 + data["seq1"]*data["weight1"]*data["coef"] %} {% set totalNCoef2 = totalNCoef2 + data["seq2"]*data["weight2"]*data["coef"] %} {% endif %} {% endfor %} {% endfor %}
{{ "Eleves"|upper }} {{ course.code }} / {{ course.coefficient }}
    TOT. COEF   ( {{ totalCoef }})
   MOYENNE/20   
Sessions {{s1}} {{s2}} {{s1}} {{s2}} {{s1}} {{s2}}
{{ std.lastname }}    {{ std.firstname }} {{data["seq1"]}} {{data["seq2"]}} {{totalCoef1}} {{totalCoef2}} {{totalCoef1==0 ? 0 : (totalNCoef1/totalCoef1)|round(2, 'floor')}} {{totalCoef2==0 ? 0 : (totalNCoef2/totalCoef2)|round(2, 'floor')}}



{% if(room.level.cycle.section.name=="Francophone") %} Nom(s) et visa des responsables {% else %} Name(s) and signature of officials {% endif %} Date : __ / __ / ____