{% import "macros/datatables.html.twig" as tables %} {% set language = app.request is not null ? app.request.locale : 'en' %} {% set decimal = false %} {% set showUserColumn = true %} {% if query.user %} {% set showUserColumn = false %} {% endif %}
{{ 'date'|trans }} | {% if showUserColumn %}{{ 'username'|trans }} | {% endif %}{{ 'description'|trans }} | {% for field in timesheetMetaFields %}{{ field.label|trans }} | {% endfor %}{{ 'hours'|trans }} |
---|---|---|---|---|
{{ entry.begin|date_short }} | {% if showUserColumn %}{{ entry.user.displayName }} | {% endif %}
{% 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 }}
|
{% 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) }} |