{% 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 %}
{{ 'label.date'|trans }} | {% if showUserColumn %}{{ 'label.username'|trans }} | {% endif %}{{ 'label.description'|trans }} | {% for field in timesheetMetaFields %}{{ field.label|trans }} | {% endfor %}{{ 'label.hours'|trans }} |
---|---|---|---|---|
{{ entry.begin|date_short }} | {% if showUserColumn %}{{ widgets.username(entry.user) }} | {% endif %}
{% 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 }}
|
{% for field in timesheetMetaFields %}
{{ tables.datatable_meta_column(entry, field) }} | {% endfor %}{{ entry.duration|duration(decimal) }} |
{% if showUserColumn %} | {% endif %} {% for field in timesheetMetaFields %} | {% endfor %} | {{ 'invoice.total_working_time'|trans }} | {{ timeWorked|duration(decimal) }} |