{% extends "Palto/base/base-features.html" %} {% load static %} {% load dict_tags %} {% block page-title %} Profil {% endblock %} {% block navigation-title %} Profil de {{ profile.first_name|title }} {{ profile.last_name|upper }} {% endblock %} {% block style %} {{ block.super }} {% endblock %} {% block body %} {{ block.super }} {# user informations #}
{{ profile.first_name|title }} {{ profile.last_name|upper }}
{{ profile.username }}
{{ profile.email }}
{% if profile.is_superuser %}Administrator{% endif %}
{# user related departments table #} {% for department, profile_department_data in profile_departments_data.items %} {# department name #} {# relation information #} {% endfor %}
{{ department.name }} {# user managing the department #} {% if profile_department_data|dict_get:"is_manager" %} {% endif %} {# user managing units #} {% with managing_units=profile_department_data|dict_get:"managing_units" %} {% if managing_units|length > 0 %} {% endif %} {% endwith %} {# user teaching units #} {% with teaching_units=profile_department_data|dict_get:"teaching_units" %} {% if teaching_units|length > 0 %} {% endif %} {% endwith %} {# user studying groups #} {% with student_groups=profile_department_data|dict_get:"student_groups" %} {% if student_groups|length > 0 %} {% endif %} {% endwith %}
Responsable de Département /
Responsable d'UE {% for managing_unit in managing_units %} {{ managing_unit.name }} {% if not forloop.last %}
{% endif %} {% endfor %}
Enseignant {% for teaching_unit in teaching_units %} {{ teaching_unit.name }} {% if not forloop.last %}
{% endif %} {% endfor %}
Groupe Étudiant {% for student_group in student_groups %} {{ student_group.name }} {% if not forloop.last %}
{% endif %} {% endfor %}
{% endblock %}