ScoDocMM/app/templates/but/cursus_etud.j2

33 lines
1.4 KiB
Django/Jinja

{# Affichage cursus BUT fiche étudiant #}
<div class="cursus_but">
<div class="cb_head"></div>
<div class="cb_head">BUT 1</div>
<div class="cb_head">BUT 2</div>
<div class="cb_head">BUT 3</div>
{% for competence_id in cursus.to_dict() %}
<div class="cb_titre_competence">{{ cursus.competences[competence_id].titre }}</div>
{% for annee in ('BUT1', 'BUT2', 'BUT3') %}
{% set validation = cursus.validation_par_competence_et_annee.get(competence_id, {}).get(annee) %}
{% set has_niveau = cursus.competence_annee_has_niveau(competence_id, annee) %}
<div class="{{ '' if has_niveau else 'no_niveau' }}">
{% if validation %}
<div class="code_rcue with_scoplement">
<div class="code_jury">{{validation.code}}</div>
<div class="scoplement">
<div>{{validation.ue1.acronyme}} - {{validation.ue2.acronyme}}</div>
<div>Jury de {{validation.formsemestre.titre_annee() if validation.formsemestre else "-"}}</div>
<div>enregistré le {{
validation.date.strftime(scu.DATEATIME_FMT)
}}</div>
</div>
</div>
{% else %}
<div class="code_rcue">
<div class="code_jury">{{'-' if has_niveau else ''}}</div>
</div>
{%endif%}
</div>
{% endfor %}
{% endfor %}
</div>