]> Raphaël G. Git Repositories - airbundle/commitdiff
Add common toolbox
authorRaphaël Gertz <git@rapsys.eu>
Wed, 14 Oct 2020 01:52:20 +0000 (03:52 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 14 Oct 2020 01:52:20 +0000 (03:52 +0200)
Resources/views/form/_toolbox.html.twig [new file with mode: 0644]

diff --git a/Resources/views/form/_toolbox.html.twig b/Resources/views/form/_toolbox.html.twig
new file mode 100644 (file)
index 0000000..12e6191
--- /dev/null
@@ -0,0 +1,10 @@
+{# Display application or login form #}
+{% if is_granted('ROLE_GUEST') %}
+       <div class="form">
+               {{ include('@RapsysAir/form/_application.html.twig') }}
+       </div>
+{% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
+       <div class="form">
+               {{ include('@RapsysAir/form/_login.html.twig') }}
+       </div>
+{% endif %}