]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/_toolbox.html.twig
Add granted session display
[airbundle] / Resources / views / form / _toolbox.html.twig
1 {# Display application or login form #}
2 {% if is_granted('ROLE_GUEST') %}
3 <div class="form">
4 {{ include('@RapsysAir/form/_application.html.twig') }}
5 </div>
6 {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
7 <div class="form">
8 {{ include('@RapsysAir/form/_login.html.twig') }}
9 </div>
10 {% endif %}