From 8a87bfd0ad180ec916476db52960bcacb31cc3ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Dec 2019 05:35:53 +0100 Subject: [PATCH] Add recover form directly on login page when it failed Remove header block now moved in twig form template Use fragment instead of form Cleanup --- Resources/views/location/index.html.twig | 33 +++++++----------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/Resources/views/location/index.html.twig b/Resources/views/location/index.html.twig index 5863c76..ca51431 100644 --- a/Resources/views/location/index.html.twig +++ b/Resources/views/location/index.html.twig @@ -1,9 +1,8 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %}
-TODO:

{% trans %}Dashboard{% endtrans %}

-
+
{% if calendar is defined and calendar %} @@ -30,29 +29,17 @@ TODO:
{% endif %} -
- {{ form_start(form) }} - -
{{ form_errors(form) }}
- + {# Display application or login form #} + {% if is_granted('ROLE_GUEST') %}
- {{ form_row(form.location) }} - - {{ form_row(form.date) }} - - {{ form_row(form.slot) }} + {{ include('@RapsysAir/form/_application.html.twig') }}
- - {{ form_row(form.submit) }} - - {# Render CSRF token etc .#} -
- {{ form_rest(form) }} -
- - {{ form_end(form) }} -
-
+ {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %} +
+ {{ include('@RapsysAir/form/_login.html.twig') }} +
+ {% endif %} +
{# dump(calendar) #} {% endblock %} -- 2.41.1