{% 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 showUserColumn = true %} {% if query.user %} {% set showUserColumn = false %} {% endif %}
{% if showUserColumn %} {% endif %} {% for field in metaColumns %} {% endfor %} {% set timeWorked = 0 %} {% for entry in entries %} {% set timeWorked = timeWorked + entry.duration %} {% if showUserColumn %} {% endif %} {% for field in metaColumns %} {% endfor %} {% endfor %} {% if showUserColumn %} {% endif %} {% for field in metaColumns %} {% 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|escape|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 }}
{{ 'invoice.total_working_time'|trans }} {{ timeWorked|duration }}
{% endblock %} {% block print_button %}{% endblock %}