{% extends "base.html" %} {% load i18n bootstrap3 static dv_filters %} {% block bootstrap3_extra_head %} {% endblock %} {% block head_title %}{{ userprofile.get_full_name }}{% endblock %} {% block content %}

{{ userprofile.get_full_name }} {% if userprofile.profile.formation %} {{ userprofile.profile.formation_full }} {{ userprofile.profile.formation_icon }} {% endif %} {% if userprofile.profile.actor %} {{ userprofile.profile.actor_inline }} {{ userprofile.profile.actor_icon }} {% endif %} {% if request.user|inusercantons:userprofile.profile.affiliation_canton or request.user|inusercantons:userprofilecanton %} {% if userprofile.profile.can_login %} {{ userprofile.profile.access_level_icon }} {% if request.user|can:"user_can_resend_credentials" %} {% endif %} {% else %} {% if request.user|can:"user_can_send_credentials" and request.user.pk != userprofile.pk %} {% endif %} {% endif %} {% if request.user|can:"user_deletions" and request.user.pk != userprofile.pk and not userprofile.profile.deleted %} {% endif %} {% endif %}

{% comment %} {% endcomment %}
{% trans "Nom" %}
{{ userprofile.get_full_name }}
{% if userprofile.profile.has_address %}
{% trans "Adresse" %}
{{ userprofile.profile.address_street }} {{ userprofile.profile.address_no }}
{{ userprofile.profile.address_zip }} {{ userprofile.profile.address_city }} {% if userprofile.profile.address_canton %} ({{ userprofile.profile.address_canton }}) {% endif %}
{% endif %}
{% if userprofile.profile.birthdate %}
{% trans "Date de naissance" %}
{{ userprofile.profile.birthdate|date }} ({% blocktrans with age=userprofile.profile.age %}{{ age }} ans{% endblocktrans %})
{% endif %} {% if userprofile.email %}
{% trans "Email" %}
{% endif %} {% if userprofile.profile.natel %}
{% trans "Natel" %}
{{ userprofile.profile.natel|tel_link }}
{% endif %} {% if userprofile.profile.phone %}
{% trans "Téléphone" %}
{{ userprofile.profile.phone|tel_link }}
{% endif %}
{% if userprofile.profile.is_paid_staff %}
{% if userprofile.profile.nationality %}
{% trans "Nationalité" %}
{{ userprofile.profile.nationality.name }}
{% endif %} {% if userprofile.profile.work_permit %}
{% trans "Permis de travail" %}
{{ userprofile.profile.work_permit }}
{% endif %} {% if userprofile.profile.tax_jurisdiction %}
{% trans "Lieu d’imposition" %}
{{ userprofile.profile.tax_jurisdiction }}
{% endif %} {% if userprofile.profile.bank_name %}
{% trans "Nom de la banque" %}
{{ userprofile.profile.bank_name }}
{% endif %} {% if userprofile.profile.iban %}
{% trans "N° IBAN" %}
{{ userprofile.profile.iban_nice }}
{% endif %} {% if userprofile.profile.employee_code %}
{% trans "N° d’employé Crésus" %}
{{ userprofile.profile.employee_code }}
{% endif %} {% if userprofile.profile.social_security %}
{% trans "N° AVS" %}
{{ userprofile.profile.social_security }}
{% endif %} {% if userprofile.profile.marital_status %}
{% trans "État civil" %}
{{ userprofile.profile.marital_status_full }}
{% endif %}
{% endif %}
{% if userprofile.profile.is_paid_staff %} {% if userprofile.profile.formation %}
{% trans "Formation" %}
{{ userprofile.profile.formation_full }} {% if userprofile.profile.formation_firstdate %}
{% trans "Première formation : " %}{{ userprofile.profile.formation_firstdate }} {% endif %} {% if userprofile.profile.formation_lastdate %}
{% trans "Dernière formation : " %}{{ userprofile.profile.formation_lastdate }} {% endif %}
{% endif %} {% if userprofile.profile.actor %}
{% trans "Intervenant" %}
{{ userprofile.profile.actor_for.all|join:'
' }}
{% endif %} {% endif %} {% if userprofile.profile.status > 0 %}
{% trans "État" %}
{{ userprofile.profile.status_icon }} {{ userprofile.profile.status_full }} {% if userprofile.profile.status_updatetime %} ({% trans "Dernière mise à jour : " %}{{ userprofile.profile.status_updatetime }}) {% endif %}
{% endif %} {% if userprofile.profile.is_paid_staff %} {% if userprofile.profile.bagstatus > 0 %}
{% trans "Sac Défi Vélo" %}
{{ userprofile.profile.bagstatus_icon }} {{ userprofile.profile.bagstatus_full }} {% if userprofile.profile.bagstatus_updatetime %} ({% trans "Dernière mise à jour: " %}{{ userprofile.profile.bagstatus_updatetime }}) {% endif %}
{% endif %} {% if userprofile.profile.pedagogical_experience %}
{% trans "Exp. pédagogique" %}
{{ userprofile.profile.pedagogical_experience }}
{% endif %}
{% trans "Cours samaritain" %}
{{ userprofile.profile.firstmed_course_comm }}
{% endif %}
{% if userprofile.profile.is_paid_staff %} {% if userprofile.profile.affiliation_canton %}
{% trans "Canton d’affiliation" %}
{{ userprofile.profile.affiliation_canton|canton_abbr:False }}
{% endif %} {% if userprofile.profile.activity_cantons %}
{% trans "Défi Vélo Mobile" %}
{{ userprofile.profile.activity_cantons|cantons_abbr:False|join:"
" }}
{% endif %} {% endif %} {% if userprofile.profile.can_login %}
{% trans "Niveau d’accès" %}
{{ userprofile.profile.access_level_icon }} {{ userprofile.profile.access_level }}
{% endif %} {% if userprofile.profile.managed_cantons %}
{% trans "Cantons gérés" %}
{{ userprofile.profile.managed_cantons|cantons_abbr:False|join:"
" }}
{% endif %} {% if userprofile.managed_organizations %}
{% trans "Établissements" %}
{% for orga in userprofile.managed_organizations.all %} {{ orga.name }} ({{ orga.address_canton|canton_abbr:False }}) {% if not forloop.last %}
{% endif %} {% endfor %}
{% endif %}
{% if userprofile.profile.language %}
{% trans "Langue" %}
{{ userprofile.profile.language_verb }}
{% endif %} {% if userprofile.profile.languages_challenges %}
{% trans 'Prêt à animer en' %}
{{ userprofile.profile.languages_challenges_text }}
{% endif %}
{% if request.user|can:'user_crud_dv_private_fields' and userprofile.profile.comments %}
{% trans "Remarques privées" %}
{{ userprofile.profile.comments|linebreaksbr }}
{% endif %}
{% buttons %}
{% if request.user.pk == userprofile.pk or request.user|can:"cantons_all" or request.user|can:"user_edit_other" and request.user|inusercantons:userprofile.profile.affiliation_canton or request.user|can:"user_edit_other" and request.user|inusercantons:userprofilecanton %} {% trans "Éditer" %} {% endif %} {% if request.user.pk != userprofile.pk and userprofile.profile.can_login and request.user|can:"user_set_role" or request.user|can:"assign_only_coordinator_role" and profile_is_coordinator or not user_has_a_role %} {% if profile_is_coordinator %}{% trans "Modifier les établissements gérés" %} {% else %}{% trans "Modifier le niveau d’accès" %}{% endif %} {% endif %} {% if request.user|can:'user_view_list' %} {% trans "Retour à la liste des utilisateurs" %} {% endif %} {% endbuttons %} {% buttons %} {% if request.user|can:"user_create" %}
{% trans "Nouvel utilisateur" %} {% endif %}
{% endbuttons %} {% endblock %}