Changement affichage si eleve ou instructeur dans show

This commit is contained in:
Aymeric SERRA 2023-02-09 22:34:28 +01:00
parent cdfe44d678
commit 13346abd0e
Signed by: oupson
GPG Key ID: 3BD88615552EFCB7
1 changed files with 20 additions and 18 deletions

View File

@ -35,6 +35,7 @@
{% if app.user and app.user == atelier.instructeur %}
{{ include('atelier/_delete_form.html.twig') }}
{% endif %}
{% if is_granted('ROLE_APPRENTI') %}
{% if not inscrit %}
<form method="post" action="{{ path('app_atelier_inscription', {'id': atelier.id}) }}">
<button class="btn btn-outline-success m-2">S'inscrire</button>
@ -47,6 +48,7 @@
<a class="btn btn-outline-primary m-2"
href="{{ path('app_atelier_noter', {'id': atelier.id}) }}">Noter</a>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}