{% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% extends 'invoice/layout.html.twig' %} {% block invoice %}
{{ 'label.date'|trans }} | {% if query.user is empty %}{{ 'label.username'|trans }} | {% endif %}{{ 'label.description'|trans }} | {% for field in metaColumns %}{{ field.label|trans }} | {% endfor %}{{ 'label.hours'|trans }} |
---|---|---|---|---|
{{ entry.begin|date_short }} | {% if query.user is empty %}{{ widgets.username(entry.user) }} | {% endif %}
{% if entry.description is not empty %}
{{ entry.description|escape|desc2html }}
{% endif %}
{{ 'label.activity'|trans }}: {{ entry.activity.name }} |
{{ 'label.project'|trans }}: {{ entry.project.name }} |
{{ 'label.customer'|trans }}: {{ entry.project.customer.name }}
|
{% for field in metaColumns %}
{{ tables.datatable_meta_column(entry, field) }} | {% endfor %}{{ entry.duration|duration }} |
{% if query.user is empty %} | {% endif %} {% for field in metaColumns %} | {% endfor %} | {{ 'invoice.total_working_time'|trans }} | {{ timeWorked|duration }} |