]> Raphaël G. Git Repositories - airbundle/commitdiff
Add session_edit contextual form
authorRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 20:49:30 +0000 (21:49 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 20:49:30 +0000 (21:49 +0100)
Add application contextual form

Resources/views/form/_toolbox.html.twig

index 12e61915b9e0a299d1929325b00d573b972c7a97..e9697910a3da18948a11081da5460c47a24c3e0d 100644 (file)
@@ -1,7 +1,12 @@
 {# Display application or login form #}
 {% if is_granted('ROLE_GUEST') %}
        <div class="form">
-               {{ include('@RapsysAir/form/_application.html.twig') }}
+               {% if application is defined %}
+                       {{ include('@RapsysAir/form/_application.html.twig') }}
+               {% endif %}
+               {% if session_edit is defined %}
+                       {{ include('@RapsysAir/form/_session_edit.html.twig') }}
+               {% endif %}
        </div>
 {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
        <div class="form">