{% extends 'reporting/layout.html.twig' %} {% block report_title %}{{ report_title|trans({}, 'reporting') }}{% endblock %} {% block report %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_before %} {{ form_start(form, {'attr': {'class': 'form-inline'}}) }} {% endblock %} {% block box_after %} {{ form_end(form) }} {% endblock %} {% block box_title %} {{ form_widget(form.date) }} {% endblock %} {% block box_body_class %}{{ box_id }} table-responsive no-padding{% endblock %} {% block box_body %} {% for id, month in months %} {% endfor %} {% for userYear in rows %} {% set usersTotalDuration = 0 %} {% for yid, year in userYear.years %} {% for mid, month in year.months %} {% if month.totalDuration > 0 %} {% set usersTotalDuration = usersTotalDuration + month.totalDuration %} {% endif %} {% endfor %} {% endfor %} {% for yid, year in userYear.years %} {% for mid, month in year.months %} {% endfor %} {% endfor %} {% endfor %} {% for id, duration in totals %} {% endfor %}
    {{ month|month_name }}
{{ month|date_format('Y') }}
{{ widgets.username(userYear.user) }} {{ usersTotalDuration|duration }} {% if month.totalDuration > 0 %} {{ month.totalDuration|duration }} {% endif %}
    {{ duration|duration }}
{% endblock %} {% endembed %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}