Skip to content
Snippets Groups Projects
Commit 49544f28 authored by WAGNER ERIC's avatar WAGNER ERIC
Browse files

MODIFICATION

parent 03b06952
Branches
No related merge requests found
......@@ -3,11 +3,13 @@
{% block title %}User index{% endblock %}
{% block body %}
<main class="my-12">
<h1 class="text-center">User index</h1>
<div class="flex flex-wrap justify-center mt-8 gap-4 md:gap-12 max-w-sreen">
{% for user in users %}
{% if app.user and is_granted('ROLE_ADMIN') %}
<main class="my-12">
<h1 class="text-center">User index</h1>
<div class="flex flex-wrap justify-center mt-8 gap-4 md:gap-12 max-w-sreen">
{% for user in users %}
<div class="bg-[#EEEEEE] w-fit md:w-fit p-5 case">
<p>{{ user.username }}</p>
<p>{{ user.email }}</p>
......@@ -17,7 +19,13 @@
<button class="btn w-fit text-[#AA0000] "><i class="bi bi-trash-fill text-sm text-right"></i></button>
</form>
</div>
{% endfor %}
</div>
</main>
{% endfor %}
</div>
</main>
{% else %}
<div class="h-screen flex flex-col items-center justify-center gap-12">
<h1 class="text-[#AA0000]">Vous n'avez pas accès à cette page.</h1>
<a href="{{ path('home') }}" class="p-2 md:px-4 md:p-3 bg-[#EEEEEE] hover:bg-[#326273] hover:text-[#EEEEEE] text-[#326273] rounded-3xl font-bold text-base md:text-lg transition-colors duration-500">Retour à l'accueil</a>
</div>
{% endif %}
{% endblock %}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment