From: Raphaƫl Gertz Date: Wed, 11 Dec 2019 04:35:53 +0000 (+0100) Subject: Add recover form directly on login page when it failed X-Git-Tag: 0.1.1~30 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/8a87bfd0ad180ec916476db52960bcacb31cc3ee?ds=sidebyside 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 --- 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 %}