summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e2a16e)
Remove header block now moved in twig form template
Use fragment instead of form
Cleanup
{% extends '@RapsysAir/body.html.twig' %}
{% block content %}
<section id="dashboard">
{% extends '@RapsysAir/body.html.twig' %}
{% block content %}
<section id="dashboard">
<h2>{% trans %}Dashboard{% endtrans %}</h2>
<h2>{% trans %}Dashboard{% endtrans %}</h2>
+ <section class="panel">
{% if calendar is defined and calendar %}
<table class="grid">
<tbody>
{% if calendar is defined and calendar %}
<table class="grid">
<tbody>
</tbody>
</table>
{% endif %}
</tbody>
</table>
{% endif %}
- <div>
- {{ form_start(form) }}
-
- <header>{{ form_errors(form) }}</header>
-
+ {# 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 .#}
- <footer style="display:none">
- {{ form_rest(form) }}
- </footer>
-
- {{ form_end(form) }}
- </div>
- </div>
+ {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
+ <section>
+ {{ include('@RapsysAir/form/_login.html.twig') }}
+ </section>
+ {% endif %}
+ </section>
{# dump(calendar) #}
</section>
{% endblock %}
{# dump(calendar) #}
</section>
{% endblock %}