{% extends 'reporting/layout.html.twig' %} {% block report_title %}{{ 'report_monthly_users'|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, {'action': path('report_monthly_users'), 'attr': {'class': 'form-inline'}}) }} {% endblock %} {% block box_after %} {{ form_end(form) }} {% endblock %} {% block box_title %} {{ form_widget(form.date) }} {% endblock %} {% block box_body_class %}monthly-user-list-reporting-box table-responsive no-padding{% endblock %} {% block box_body %} {% for day in days %} {% endfor %} {% for userDay in rows %} {% set usersMonthDuration = 0 %} {% for day in userDay.days %} {% if day.totalDuration > 0 %} {% set usersMonthDuration = usersMonthDuration + day.totalDuration %} {% endif %} {% endfor %} {% for day in userDay.days %} {% endfor %} {% endfor %}
    {{ day|day_name(true) }}
{{ day|date_format('d.m') }}
{{ widgets.username(userDay.user) }} {% if usersMonthDuration > 0 %} {{ usersMonthDuration|duration }} {% endif %} {% if day.totalDuration > 0 %} {{ day.totalDuration|duration }} {% endif %}
{% endblock %} {% endembed %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}