{% extends 'reporting/layout.html.twig' %} {% block report_title %}{{ 'report_user_month'|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_user_month'), 'attr': {'class': 'form-inline'}}) }} {% endblock %} {% block box_after %} {{ form_end(form) }} {% endblock %} {% block box_title %} {% if form.user is defined %} {{ form_widget(form.user) }} {% else %} {{ widgets.username(user) }} {% endif %} {{ form_widget(form.date) }} {% endblock %} {% block box_body_class %}user-month-reporting-box no-padding table-responsive{% endblock %} {% block box_body %} {% for day in days %} {% endfor %} {% for project in rows %} {% for day in project.days %} {% endfor %} {% for activity in project.activities %} {% for day in activity.days %} {% endfor %} {% endfor %} {% endfor %} {% set total = 0 %} {% for day in days %} {% endfor %}
{{ day.day|day_name(true) }}
{{ day.day|date_format('d.m') }}
{{ widgets.label_project(project.project) }} {% if day.duration > 0 %} {{ day.duration|duration }} {% endif %} {{ project.duration|duration }}
{{ widgets.label_activity(activity.activity) }} {% if day.duration > 0 %} {{ day.duration|duration }} {% endif %} {{ activity.duration|duration }}
{% if day.totalDuration > 0 %} {{ day.totalDuration|duration }} {% set total = total + day.totalDuration %} {% endif %} {{ total|duration }}
{% endblock %} {% endembed %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}