{% extends "docbow/base_user.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %} {% trans "Profile" %} {% endblock %} {% block extra_scripts %} {{ profile_form.media.css }} {{ delegate_form.media.css }} {% endblock %} {% block main-column %}

{% trans "profile_menu" %}

Notifications

{% crispy profile_form profile_form.helper %} {% if delegate_form %}

{% trans "Delegations" %}

Délégations attribuées

{% if delegations %}
{% csrf_token %} {% for delegation in delegations %} {% if delegation.journals %} {% else %} {% if delegation.to.date_joined != delegation.to.last_login %} {% else %} {% endif %} {% endif %} {% endfor %}
Prénom Nom Courriel Identifiant
{{ delegation.to.first_name }} {{ delegation.to.last_name }} {{ delegation.to.email }} {{ delegation.to.username }}
Dernière(s) connexion(s): {% for connection_time in delegation.journals %} {{ connection_time }} {% if not forloop.last %}, {% endif %} {% endfor %}Dernière connexion: {{ delegation.to.last_login }}Aucune connexion.
{% else %}

Aucune délégation attribuée

{% endif %}

{% trans "Create a new delegation" %}

{% crispy delegate_form delegate_form.helper %}

{% trans "Received delegations" %}

{% if received_delegations %} {% else %}

Aucune délégation reçue

{% endif %} {% endif %}

{% trans "Changing password" %}

{% csrf_token %} {{ password_change_form|crispy }}
{% endblock main-column %} {% block endscripts %} {{ profile_form.media.js }} {{ delegate_form.media.js }} {% endblock endscripts %}