{% extends "Palto/base/base-navigation.html" %}
{% load dict_tags %}
{% block body %}
{{ block.super }}
{{ 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 #}
{{ department.name }} |
{# relation information #}
{# user managing the department #}
{% if profile_department_data|dict_get:"is_manager" %}
Responsable de Département |
/ |
{% endif %}
{# user managing units #}
{% with managing_units=profile_department_data|dict_get:"managing_units" %}
{% if managing_units|length > 0 %}
Responsable d'UE |
{% for managing_unit in managing_units %}
{{ managing_unit.name }}
{% if not forloop.last %} {% endif %}
{% endfor %}
|
{% endif %}
{% endwith %}
{# user teaching units #}
{% with teaching_units=profile_department_data|dict_get:"teaching_units" %}
{% if teaching_units|length > 0 %}
Enseignant |
{% for teaching_unit in teaching_units %}
{{ teaching_unit.name }}
{% if not forloop.last %} {% endif %}
{% endfor %}
|
{% endif %}
{% endwith %}
{# user studying groups #}
{% with student_groups=profile_department_data|dict_get:"student_groups" %}
{% if student_groups|length > 0 %}
Groupe Étudiant |
{% for student_group in student_groups %}
{{ student_group.name }}
{% if not forloop.last %} {% endif %}
{% endfor %}
|
{% endif %}
{% endwith %}
|
{% endfor %}
{% endblock %}