This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
fontenay-sous-bois/authentic2/templates/idp/account_management.html

60 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block title %}Mon profil{% endblock %}
{% block content %}
<h1>Mon profil</h1>
<div id="profile">
{% if profile %}
<ul>
{% for key, values in profile %}
<li>{{ key|capfirst }}&nbsp;:
<strong>{% if values|length == 1 %}{{ values.0 }}{% else %}
<ul>{% for value in values %}<li>{{ value }}</li>
{% endfor %}</ul>{% endif %}</strong></li>
{% endfor %}
{% endif %}
{% if allow_email_change %}
<p><a href="{% url 'email-change' %}">Changer mon adresse électronique</a></p>
{% endif %}
{% if allow_profile_edit %}
<p><a href="{% url 'profile_edit' %}">Modifier les autres information de mon profil</a></p>
{% endif %}
{% if allow_account_deletion %}
<p><a href="{% url 'delete_account' %}">Supprimer mon compte</a></p>
{% endif %}
</div>
<h3>{% trans "Credentials" %}</h3>
{% for html_block in frontends_block %}
{{ html_block|safe }}
{% endfor %}
<!--
{% if federation_management %}
<div id="federation-management">
<h3>{% trans "Federation management" %}
<ul>
{% for federation in federation_management %}
<li>
<form method="post" action="{{ federation.url }}">
{% csrf_token %}
<span class="name">{{ federation.name }}</span>
{% for key, value in federation.hidden_inputs.iteritems %}
<input type="hidden" name="{{ key }}" value="{{ value }}"/>
{% endfor %}
{% for button_name, button_label in federation.buttons %}
<button name="{{ button_name }}">{{ button_label }}</button>
{% endfor %}
</form>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
-->
{% endblock %}