{% extends '@RapsysAir/base.html.twig' %} {% block content %} {% trans %}Dashboard{% endtrans %} {% if calendar is defined and calendar %} {% for date, day in calendar %} {{ day.title }} {% if day.sessions is not empty %} {% for session in day.sessions %} {{ session.title }} {% endfor %} {% endif %} {% if loop.index % 7 == 0 and not loop.last %} {% endif %} {% endfor %} {% endif %} {{ form_start(form) }} {{ form_errors(form) }} {{ form_row(form.location) }} {{ form_row(form.date) }} {{ form_row(form.slot) }} {{ form_row(form.submit) }} {# Render CSRF token etc .#} {{ form_end(form) }} {# dump(calendar) #} {% endblock %}