{% extends 'invoice/layout.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% block title %}{{ '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 %}
{{ 'date'|trans }}{{ 'username'|trans }}{{ 'description'|trans }}{{ field.label|trans }}{{ '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 %}{{ 'activity'|trans }}: {{ entry.activity.name }} |{% endif %} {{ 'project'|trans }}: {{ entry.project.name }} | {{ '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 %}