Permissions: If no sections, do not show list

This commit is contained in:
William Bouzourène 2025-01-21 16:25:22 +01:00
parent 2592577e55
commit 60476a260e
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww

View file

@ -25,6 +25,7 @@
</div>
{% endif %}
{% if Sections %}
<form id="user" method="post">
{% for Section in Sections %}
@ -70,6 +71,11 @@
</button>
</div>
</form>
{% else %}
<div class="my-4">
Pas de section pour le moment
</div>
{% endif %}
</div>
{% endblock %}