{% extends 'reporting/layout.html.twig' %} {% block report_title %}{{ 'report_user_week'|trans({}, 'reporting') }}{% endblock %} {% block report %} {% set hasData = false %} {% for day in days %} {% if day.details is not empty %} {% set hasData = true %} {% endif %} {% endfor %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_before %} {{ form_start(form, {'action': path('report_user_week'), 'attr': {'class': 'form-inline'}}) }} {% endblock %} {% block box_after %} {{ form_end(form) }} {% endblock %} {% block box_title %} {% if form.user is defined %} {{ form_row(form.user, {'label': false}) }} {% else %} {{ widgets.username(user) }} {% endif %} {{ form_widget(form.date) }} {% endblock %} {% block box_body_class %}user-week-reporting-box table-responsive{% if hasData %} no-padding{% endif %}{% endblock %} {% block box_body %} {% if not hasData %} {{ widgets.nothing_found() }} {% else %}
{% for day in days %} |
{{ day.day|day_name(true) }} {{ day.day|date_format('d.m') }} |
{% endfor %}
|
---|---|---|
{{ widgets.label_project(project.project) }} | {{ project.duration|duration }} | {% for day in project.days %}{% if day.duration > 0 %} {{ day.duration|duration }} {% endif %} | {% endfor %}
{{ widgets.label_activity(activity.activity) }} | {{ activity.duration|duration }} | {% for day in activity.days %}{% if day.duration > 0 %} {{ day.duration|duration }} {% endif %} | {% endfor %}
{{ total|duration }} | {% for day in days %}{% if day.totalDuration > 0 %} {{ day.totalDuration|duration }} {% endif %} | {% endfor %}