{% extends 'admin_base.html.twig' %} {% block body %}

Bonjour {{ app.user.getName() }} !

Utilisateurs

{{ total_users}}

Groups

{{ total_groupes }}

Etudiants

{{ total_etudiants }}

Bibliothéques

{{ total_libraries }}

Cours

{{ total_courses }}

Étapes

{{ total_etapes }}

QCM

{{ total_qcms }}

Questions

{{ total_questions }}

{% if app.user.isAdmin() %} {% for group in groupes %}

Groupe {{ group.getName() }}

{% for item in etudiants %} {% if item.group==group.getSgToken() %}

Etudiants

{{ item.size }}

{% if total_etudiants >0 %} {% set nbr = item.size * 100 / total_etudiants %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des Etudiants
{% endif %} {% endfor %} {% for item in libraries %} {% if item.group==group.getSgToken() %}

Bibliothéques

{{ item.size }}

{% if total_libraries >0 %} {% set nbr = item.size * 100 / total_libraries %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des Bibliothéques
{% endif %} {% endfor %} {% for item in courses %} {% if item.group==group.getSgToken() %}

Cours

{{ item.size }}

{% if total_courses >0 %} {% set nbr = item.size * 100 / total_courses %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des Cours
{% endif %} {% endfor %} {% for item in etapes %} {% if item.group==group.getSgToken() %}

Étapes

{{ item.size }}

{% if total_etapes >0 %} {% set nbr = item.size * 100 / total_etapes %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des Étapes
{% endif %} {% endfor %} {% for item in qcms %} {% if item.group==group.getSgToken() %}

QCMs

{{ item.size }}

{% if total_qcms >0 %} {% set nbr = item.size * 100 / total_qcms %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des QCMs
{% endif %} {% endfor %} {% for item in questions %} {% if item.group==group.getSgToken() %}

Questions

{{ item.size }}

{% if total_questions >0 %} {% set nbr = item.size * 100 / total_questions %} {% else %} {% set nbr = 0 %} {% endif %}
{{ nbr|number_format(2, '.', ',') }}% de la totalité des Questions
{% endif %} {% endfor %} {% endfor %} {% endif %}
{% endblock %}