Changement affichage si eleve ou instructeur dans show
This commit is contained in:
parent
cdfe44d678
commit
13346abd0e
|
@ -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 %}
|
Loading…
Reference in New Issue