forked from entrouvert/publik-base-theme
template: add div.links-list to a2 account-management block (#70450)
This commit is contained in:
parent
674bca2bb2
commit
eec726a8bc
|
@ -262,7 +262,6 @@ div.links-list p {
|
|||
|
||||
div#rub_service div.category ul,
|
||||
div#services > ul > li > ul,
|
||||
div#account-management ul,
|
||||
div.links-list ul,
|
||||
div.menucell ul,
|
||||
div.wcsformcell,
|
||||
|
|
|
@ -860,9 +860,6 @@ div.a2-block,
|
|||
margin-top: 0;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
h2 + ul.account-management {
|
||||
padding-top: 0;
|
||||
}
|
||||
&.textcell {
|
||||
h2 ~ p {
|
||||
padding: 0.5rem 1rem;
|
||||
|
|
|
@ -51,27 +51,29 @@
|
|||
<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 d’accè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>
|
||||
<div class="links-list">
|
||||
<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 d’accè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>
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block account-management-other-blocks %}
|
||||
|
|
Loading…
Reference in New Issue