2017-07-17 17:44:20 +02:00
{% extends "authentic2/base.html" %}
{% load i18n %}
{% block content %}
< div id = "cut-nav" >
< ul >
< li > < a href = "{% url 'account_management' %}#mon-compte" > MON COMPTE< / a > < / li >
< li > < a href = "{% url 'account_management' %}#mes-donnees-d-identite" > MES DONNÉES D'IDENTITÉ< / a > < / li >
< li > < a href = "{% url 'account_management' %}#mes-donnees-complementaires" > MES DONNÉES COMPLÉMENTAIRES< / a > < / li >
< / ul >
< / div >
< div id = "cut-account" >
< div class = "progress" >
< h2 id = "mon-compte" > Mon compte< / h2 >
< ul class = "profile profile-{% if user.attributes.validation_context == 'FC' %}fc-validated{% elif user.attributes.validated and user.attributes.validation_context != 'FC' %}guichet-validated{% else %}completed{% endif %}-{% if cut_core_filled %}{% if cut_crown_filled %}3{% else %}2{% endif %}{% else %}1{% endif %}-3" >
< li > DONNÉES OBLIGATOIRES< / li >
< li > DONNÉES D'IDENTITÉ< / li >
< li > DONNÉES COMPLÉMENTAIRES< / li >
< / ul >
{% if user.attributes.validated and user.attributes.validation_context == 'FC' %}
< div class = "fc-validated" >
< h2 > VOTRE IDENTITÉ VERIFIÉE< / h2 >
< div class = "info" >
< p > Votre identité a été vérifiée le < strong > {{ user.attributes.validation_date }}< / strong > par liaison à FranceConnect.
< p > L'identité vérifiée permet d'accèder à des services qui demandent une identité vérifiée.< / p >
< / div >
< div class = "fc-block" >
< p class = "more-info" > < a href = "{{ help_url }}" > En savoir +< / a > < / p >
{% if user.fc_accounts.exists %}
{% for id, block in frontends_block_by_id.items %}
{{ block.content|safe }}
{% endfor %}
{% endif %}
< / div >
< br class = "clear" / >
< / div >
{% endif %}
{% if user.attributes.validated and user.attributes.validation_context != 'FC' %}
< div class = "guichet-validated" >
< h2 > VOTRE IDENTITÉ CERTIFIÉE< / h2 >
< div class = "info" >
< p > Votre identité a été certifiée le < strong > {{ user.attributes.validation_date }}< / strong > par un agent.
< p > L'identité certifiée permet d'accèder à des services qui demandent une identité certifiée.< / p >
< / div >
< div class = "fc-block" >
< p class = "more-info" > < a href = "{{ help_url }}" > En savoir +< / a > < / p >
< / div >
< br class = "clear" / >
< / div >
{% endif %}
< / div >
< div id = "account-management" >
< div class = "block" >
2017-10-09 08:59:49 +02:00
< div class = "associated-email" > VOTRE COURRIEL EST < span > {{ user.email }}< / span > < / div >
2017-07-17 17:44:20 +02:00
< ul >
{% if allow_email_change %}
2017-10-19 17:00:41 +02:00
< li > < a href = "{% url 'email-change' %}" class = "button" > Modifier le courriel< / a > < / li >
2017-07-17 17:44:20 +02:00
{% endif %}
< li > < a href = "{% url 'password_change' %}" class = "button" > Modifier le mot de passe< / a > < / li >
{% if allow_account_deletion %}
< li > < a href = "{% url 'delete_account' %}" class = "button" > Supprimer le compte< / a > < / li >
{% endif %}
< / ul >
< / div >
{% if not user.fc_accounts.exists %}
< div >
{% for id, block in frontends_block_by_id.items %}
< div id = "account-management-{{ id }}" class = "block" >
{{ block.content|safe }}
< / div >
{% endfor %}
< / div >
{% endif %}
< / div >
< br class = "clear" / >
< div id = "profile" >
{% if profile %}
< h2 id = "mes-donnees-d-identite" > Mes données d'identité< / h2 >
< p > Elles correspondent à vos données figurant sur votre carte d’ identité.< / p >
< ul >
{% for key, values in profile %}
2017-09-20 10:28:45 +02:00
{% if key == 'Prénoms' or key == 'Nom' or key == 'Nom de naissance' or key == 'Prénoms de naissance' or key == 'Civilité' or key == 'Date de naissance' or key == 'Lieu de naissance' or key == 'Pays de naissance' %}
2017-07-17 17:44:20 +02:00
< li > < span class = "field-label" > {{ key|upper }}< / span >
< span class = "field-value" >
{% if values|length == 0 %}< span class = "nodata" > (non spécifié)< / span >
{% elif values|length == 1 %}{% if key == 'Date de naissance' %}{{ user.attributes.birthdate|date:"DATE_FORMAT" }}{% else %}{{ values.0 }}{% endif %}{% else %}
< ul >
{% for value in values %}
< li > {{ value }}< / li >
{% endfor %}
< / ul >
{% endif %}
< / span >
< / li >
{% endif %}
{% endfor %}
< / ul >
< div class = "edit center" > {% if user.attributes.validated %}
2017-07-19 09:08:15 +02:00
< a href = "{{ help_url }}" > Modifier mes données d'identité ?< / a >
2017-07-17 17:44:20 +02:00
{% else %}
< a href = "{% url 'cut-edit-core' %}" class = "button" > Modifier mes données d’ identité< / a >
{% endif %}
< / div >
{% endif %}
< h2 id = "mes-donnees-complementaires" > Mes données complémentaires< / h2 >
< p > Les données complémentaires enrichissent votre compte pour faciliter vos démarches.< / p >
2017-08-23 10:45:16 +02:00
< h3 class = "section" > Données d’ identité complementaires< / h3 >
< ul >
{% for key, values in profile %}
{% if key == "Noms d'usage" or key == "Nom d'usage" or key == "Prénoms d'usage" %}
< li > < span class = "field-label" > {{ key|upper }}< / span >
< span class = "field-value" >
{% if not values %}< span class = "nodata" > (non spécifié)< / span >
{% elif values|length == 1 %}{{ values.0 }}{% else %}
< ul >
{% for value in values %}
< li > {{ value }}< / li >
{% endfor %}
< / ul >
{% endif %}
< / span >
< / li >
{% endif %}
{% endfor %}
< li class = "center nodata{% for key, values in profile %}{% if key == " Noms d ' usage " or key = = " Nom d ' usage " or key = = " Prénoms d ' usage " % } hidden { % endif % } { % endfor % } " > Non renseigné< / li >
< / ul >
< h3 class = "section" > Adresse< / h3 >
2017-07-17 17:44:20 +02:00
< ul >
{% for key, values in profile %}
2017-08-23 10:45:16 +02:00
{% if key == "Numéro sur la voie" or key == "Nom de la voie" or key == "Complément d'adresse" or key == "Code postal" or key == "Nom de la commune" or key == "Pays" %}
2017-07-17 17:44:20 +02:00
< li > < span class = "field-label" > {{ key|upper }}< / span >
< span class = "field-value" >
{% if not values %}< span class = "nodata" > (non spécifié)< / span >
{% elif values|length == 1 %}{{ values.0 }}{% else %}
< ul >
{% for value in values %}
< li > {{ value }}< / li >
{% endfor %}
< / ul >
{% endif %}
< / span >
< / li >
{% endif %}
{% endfor %}
2017-09-11 09:49:55 +02:00
{% if user.fc_accounts.all.0.get_user_info.address %}
< li >
< span class = "field-label" > ADRESSE FOURNIE PAR FRANCECONNECT< / span >
< span class = "field-value" > {% firstof user.fc_accounts.all.0.get_user_info.address.formatted user.fc_accounts.all.0.get_user_info.address %}< / span >
< / li >
2017-08-23 10:45:16 +02:00
{% else %}
< li class = "center nodata{% if user.fc_accounts.all.0.get_user_info.address %} hidden {% else %}{% for key, values in profile %}{% if key == " Numéro sur la voie " or key = = " Nom de la voie " or key = = " Complément d ' adresse " or key = = " Code postal " or key = = " Nom de la commune " or key = = " Pays " % } hidden { % endif % } { % endfor % } { % endif % } " > Non renseigné< / li >
{% endif %}
< / ul >
< h3 class = "section" > Coordonnées< / h3 >
< ul >
{% for key, values in profile %}
{% if key == "Téléphone mobile personnel" or key == "Téléphone fixe personnel" or key == "Téléphone mobile professionnel" or key == "Téléphone fixe professionnel" %}
< li > < span class = "field-label" > {{ key|upper }}< / span >
< span class = "field-value" >
{% if not values %}< span class = "nodata" > (non spécifié)< / span >
{% elif values|length == 1 %}{{ values.0 }}{% else %}
< ul >
{% for value in values %}
< li > {{ value }}< / li >
{% endfor %}
< / ul >
{% endif %}
< / span >
< / li >
2017-09-11 09:49:55 +02:00
{% endif %}
2017-08-23 10:45:16 +02:00
{% endfor %}
2017-09-11 09:49:55 +02:00
{% if user.fc_accounts.all.0.get_user_info.phone_number %}
< li >
< span class = "field-label" > TÉLÉPHONE FOURNI PAR FRANCECONNECT< / span >
< span class = "field-value" > {{ user.fc_accounts.all.0.get_user_info.phone_number }}< / span >
< / li >
2017-08-23 10:45:16 +02:00
{% else %}
< li class = "center nodata{% if user.fc_accounts.all.0.get_user_info.phone_number %} hidden{% else %}{% for key, values in profile %}{% if key == " Téléphone mobile personnel " or key = = " Téléphone fixe personnel " or key = = " Téléphone mobile professionnel " or key = = " Téléphone fixe professionnel " % } hidden { % endif % } { % endfor % } { % endif % } " > Non renseigné< / li >
2017-09-11 09:49:55 +02:00
{% endif %}
2017-07-17 17:44:20 +02:00
< / ul >
< div class = "edit center" >
< a href = "{% url 'cut-edit-crown' %}" class = "button" > Compléter mes données< / a >
< / div >
< / div >
< / div >
{% endblock %}