{% extends 'reporting/layout.html.twig' %} {% block report_title %}{{ report_title|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, {'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 %}{{ box_id }} 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|format_date('short') }} |
{% 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 %}{{ day.totalDuration|duration }} | {% endfor %}