{% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% extends 'invoice/layout.html.twig' %} {% block title %}{{ 'menu.export'|trans }}{% endblock %} {% block invoice %} {% set decimal = decimal|default(false) %} {% set showUserColumn = true %} {% if query.user %} {% set showUserColumn = false %} {% endif %}
{% if showUserColumn %} {% endif %} {% for field in timesheetMetaFields %} {% endfor %} {% set timeWorked = 0 %} {% for entry in entries %} {% set timeWorked = timeWorked + entry.duration %} {% if showUserColumn %} {% endif %} {% for field in timesheetMetaFields %} {% endfor %} {% endfor %} {% if showUserColumn %} {% endif %} {% for field in timesheetMetaFields %} {% endfor %}
{{ 'label.date'|trans }}{{ 'label.username'|trans }}{{ 'label.description'|trans }}{{ field.label|trans }}{{ 'label.hours'|trans }}
{{ entry.begin|date_short }}{{ widgets.username(entry.user) }} {% if entry.description is not empty %}
{{ entry.description|desc2html }}
{% endif %} {% if entry.activity is not null %}{{ 'label.activity'|trans }}: {{ entry.activity.name }} |{% endif %} {{ 'label.project'|trans }}: {{ entry.project.name }} | {{ 'label.customer'|trans }}: {{ entry.project.customer.name }}
{{ tables.datatable_meta_column(entry, field) }}{{ entry.duration|duration(decimal) }}
{{ 'invoice.total_working_time'|trans }} {{ timeWorked|duration(decimal) }}
{% endblock %} {% block print_button %}{% endblock %}