{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block page_class %}dashboard{% endblock %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('chart') }} {% endblock %} {% block head %} {{ parent() }} {{ encore_entry_script_tags('chart') }} {% endblock %} {% block footer %} {% if 'dashboard' in app.request.attributes.get('_route') %} {{ parent() }} {% endif %} {% endblock %} {% block main %} {% if widgets is empty %} {{ widgets.nothing_found() }} {% else %}
{% for widget in widgets %} {% set columnSize = widget.width %}
{{ render_widget(widget) }}
{% endfor %}
{% endif %} {% endblock %}