templates: add CSS classes to account management actions (#29765)

This commit is contained in:
Frédéric Péters 2019-07-17 09:16:43 +02:00
parent 64eeac6dcc
commit d0063fd7f4
7 changed files with 11 additions and 11 deletions

View File

@ -42,16 +42,16 @@
{% block account-management-top-actions %}
{% endblock %}
{% if allow_email_change %}
<li><a href="{% url 'email-change' %}">Modifier le courriel associé</a></li>
<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><a href="{{ profile_edit_url }}">Éditer les données du compte</a></li>
<li class="profile-edit"><a href="{{ profile_edit_url }}">Éditer les données du compte</a></li>
{% elif allow_profile_edit %}
<li><a href="{% url 'profile_edit' %}">Éditer les données du compte</a></li>
<li class="profile-edit"><a href="{% url 'profile_edit' %}">Éditer les données du compte</a></li>
{% endif %}
{% if allow_account_deletion %}
<li><a href="{% url 'delete_account' %}">Supprimer le compte</a></li>
<li class="account-delete"><a href="{% url 'delete_account' %}">Supprimer le compte</a></li>
{% endif %}
{% block account-management-bottom-actions %}
{% endblock %}

View File

@ -1,7 +1,7 @@
{% if can_change_password %}
{% if has_usable_password %}
<li><a href="{% url 'password_change' %}">Modifier le mot de passe</a></li>
<li class="password-change"><a href="{% url 'password_change' %}">Modifier le mot de passe</a></li>
{% else %}
<li><a href="{% url 'password_change' %}">Définir un mot de passe</a></li>
<li class="password-set"><a href="{% url 'password_change' %}">Définir un mot de passe</a></li>
{% endif %}
{% endif %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2/accounts.html" %}
{% block account-management-bottom-actions %}
<li><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
<li class="account-logout"><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2/accounts.html" %}
{% block account-management-bottom-actions %}
<li><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
<li class="account-logout"><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2/accounts.html" %}
{% block account-management-bottom-actions %}
<li><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
<li class="account-logout"><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2/accounts.html" %}
{% block account-management-bottom-actions %}
<li><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
<li class="account-logout"><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "authentic2/accounts.html" %}
{% block account-management-bottom-actions %}
<li><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
<li class="account-logout"><a href="{% url 'auth_logout' %}">Déconnecter</a></li>
{% endblock %}