{% import "macros/widgets.html.twig" as widgets %} {% extends 'invoice/layout.html.twig' %} {% block invoice %}
{% if query.user is empty %} {% endif %} {% set timeWorked = 0 %} {% for entry in entries %} {% set timeWorked = timeWorked + entry.duration %} {% if query.user is empty %} {% endif %} {% endfor %}
{{ 'label.date'|trans }}{{ 'label.username'|trans }}{{ 'label.description'|trans }} {{ 'label.hours'|trans }}
{{ entry.begin|date_short }}{{ widgets.username(entry.user) }} {% if entry.description is not empty %}
{{ entry.description|desc2html }}
{% endif %} {{ 'label.activity'|trans }}: {{ entry.activity.name }} | {{ 'label.project'|trans }}: {{ entry.project.name }} | {{ 'label.customer'|trans }}: {{ entry.project.customer.name }}
{{ entry.duration|duration }}
{{ 'invoice.total_working_time'|trans }} {{ timeWorked|duration }}
{% endblock %} {% block print_button %}{% endblock %}