X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/80faa3fca0310d308f1f4979996e6be667bd8138..7dc96408477ff4f0b4a965ef46b364e81faa97a9:/Resources/views/location/index.html.twig 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 %}