{% 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 %} |
{{ month|month_name }} {{ month|date_format('Y') }} |
{% endfor %}
|
---|---|---|
{{ widgets.username(userYear.user) }} | {% for yid, year in userYear.years %} {% for mid, month in year.months %} {% if month.totalDuration > 0 %} {% set usersTotalDuration = usersTotalDuration + month.totalDuration %} {% endif %} {% endfor %} {% endfor %}{{ usersTotalDuration|duration }} | {% for yid, year in userYear.years %} {% for mid, month in year.months %}{% if month.totalDuration > 0 %} {{ month.totalDuration|duration }} {% endif %} | {% endfor %} {% endfor %}
{% for id, duration in totals %} | {{ duration|duration }} | {% endfor %}