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 17a44fa8b6
commit 9a803aabf5

View file

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