publik-base-theme/templates/authentic2/accounts.html

90 lines
3.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "authentic2/base.html" %}
{% load i18n %}
{% block title %}Gestion du compte{% endblock %}
{% block extra-body-class %}{{ block.super }} account-page{% endblock %}
{% block content %}
<div class="column profile">
{% block profile-pre %}{% endblock %}
<div class="block" id="a2-profile">
{% block profile-top %}{% endblock %}
{% block profile-data-title %}
<h2>Données du compte</h2>
{% endblock %}
{% block profile-data %}
<div id="profile">
{% if attributes %}
{% for attribute in attributes %}
<div class="field">
<span class="label">{{ attribute.attribute.label|capfirst }}</span>
<div class="value">
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
<ul>
{% for value in attribute.values %}
<li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
{% if LAST_LOGIN %}
<div class="field">
<span class="label">Dernière connexion</span>
<span class="value">{{ LAST_LOGIN }}</span>
</div>
{% endif %}
</div>
{% endblock %}
{% block profile-bottom %}{% endblock %}
</div>
{% block profile-post %}{% endblock %}
</div>
<div class="column account-management">
{% block account-management-pre %}{% endblock %}
<div class="block" id="account-management">
{% block account-management-top %}{% endblock %}
{% block account-management-title %}
<h2>Gestion du compte</h2>
{% endblock %}
{% block account-management-actions %}
<ul class="account-management">
{% block account-management-top-actions %}
{% endblock %}
{% if allow_email_change %}
<li class="email-change"><a href="{% url 'email-change' %}">Modifier le courriel associé</a></li>
{% endif %}
{{ frontends_block_by_id.password.content|safe }}
{% if profile_edit_url %}
<li class="profile-edit"><a href="{{ profile_edit_url }}">Modifier les données du compte</a></li>
{% elif allow_profile_edit %}
<li class="profile-edit"><a href="{% url 'profile_edit' %}">Modifier les données du compte</a></li>
{% endif %}
{% if allow_authorization_management %}
<li><a href="{% url 'consents' %}">Gérer les autorisations daccès</a></li>
{% endif %}
{% if allow_account_deletion %}
<li class="account-delete"><a href="{% url 'delete_account' %}">Supprimer le compte</a></li>
{% endif %}
{% block account-management-bottom-actions %}
{% endblock %}
</ul>
{% endblock %}
</div>
{% block account-management-other-blocks %}
{% for id, block in frontends_block_by_id.items %}
{% if id != "password" %}
<div class="block" id="account-management-{{ id }}">
<h2>{{ block.name }}</h2>
{{ block.content|safe }}
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% block account-management-post %}{% endblock %}
</div>
{% endblock %}