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

Merge branch 'main' of git.unistra.fr:eric.wagner/sae401

parents 16965de8 52c3d701
Branches
No related merge requests found
......@@ -35,20 +35,20 @@
<section class="flex flex-col">
<section class="flex flex-col gap-6">
<h4 class="bg-[#326273] py-4 text-[#FFFFFF] rounded-r-lg my-8 w-96 pl-8 pr-4 text-3xl">Commentaires</h4>
{% if app.user %}
<div class="flex justify-center mb-[120px]">
<a href="{{ path('app_commentaire_new', {'id': app.user.id, 'salle': salle.id }) }}" class=" w-52 text-center text-dark rounded-2xl bg-[#EEEEEE] hover:bg-[#5C9EAD] hover:text-[#EEEEEE] transition-colors duration-500 p-3 font-semibold">Ajouter un Commentaire</a>
</div>
{% endif %}
{% for commentaires in salle.commentaires %}
<article class="self-center flex flex-col text-center rounded-lg w-96 bg-[#EEEEEE] p-2 my-3">
<p class=" border-solid border-b border-[#326273] w-full pb-2">{{ commentaires.user.username }}</p>
<p>{{commentaires.contenu}}</p>
</article>
{% endfor %}
{% endfor %}
{% if app.user %}
<div class="flex justify-center mb-[120px]">
<a href="{{ path('app_commentaire_new', {'id': app.user.id, 'salle': salle.id }) }}" class=" w-52 text-center text-dark rounded-2xl bg-[#EEEEEE] hover:bg-[#5C9EAD] hover:text-[#EEEEEE] transition-colors duration-500 p-3 font-semibold">Ajouter un Commentaire</a>
</div>
{% endif %}
</section>
{# <h4 classe="bg-blue-900">Commentaires</h4>
......@@ -56,12 +56,18 @@
{{ commentaire.contenu }}
{% endfor %} #}
<a href="{{ path('app_salles_index') }}">back to list</a>
<a href="{{ path('app_salles_edit', {'id': salle.id}) }}">edit</a>
{{ include('salles/_delete_form.html.twig') }}
{% if is_granted('ROLE_ADMIN') %}
<div class="flex justify-center mb-[120px] gap-6">
<a class="text-dark rounded-2xl bg-[#EEEEEE] hover:bg-[#5C9EAD] hover:text-[#EEEEEE] transition-colors duration-500" href="{{ path('app_concerts_new') }}"><p class="p-3 font-semibold">Ajouter un concert</p></a>
<a class="text-dark rounded-2xl bg-[#EEEEEE] hover:bg-[#5C9EAD] hover:text-[#EEEEEE] transition-colors duration-500" href="{{ path('app_salles_edit', {'id': salle.id}) }}"><p class="p-3 font-semibold">Modifier la salle</p></a>
</div>
{% endif %}
{% if is_granted('ROLE_ORGANISATEUR') %}
<div class="flex justify-center mb-[120px]">
<a class="text-dark rounded-2xl bg-[#EEEEEE] hover:bg-[#5C9EAD] hover:text-[#EEEEEE] transition-colors duration-500" href="{{ path('app_concert_new') }}"><p class="p-3 font-semibold">Ajouter un concert</p></a>
</div>
{% endif %}
</main>
<script src="{{ asset('js/salle.js') }}"></script>
<script src="{{ asset('js/slider.js') }}"></script>
......
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