{% extends '@Approval/layout.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block report_title %}{{ report_title|trans }}{% endblock %} {% block page_actions %} {% import "macros/widgets.html.twig" as widgets %} {% if (is_granted('ROLE_SUPER_ADMIN')) %} {% set actions = {'create': {'url': path('approval_create_overtime_history'), 'class': 'modal-ajax-form', 'attr': {'data-event': 'kimai.appOvertimeHistory'}, 'title': 'create'}} %} {% set event = trigger('actions.create_overtime_history', {'actions': actions, 'view': 'create'}) %} {{ widgets.page_actions(event.payload.actions) }} {% endif %} {% endblock %} {% block report %} {% set tableName = 'overtime_history' %}

{{ 'description.overtime_history'|trans }}

{% for entry in overtimeHistory %} {% endfor %}
{{ 'user'|trans }} {{ 'date'|trans }} {{ 'duration'|trans }}
{{ widgets.user_avatar(entry.user) }} {{ widgets.username(entry.user) }} {{ entry.applyDate | date_format('Y-m-d') }} {{ entry.duration | duration }} {% set deleteLinkPath = path('delete_overtime_history', {'entryId': entry.id }) %}
{% endblock %}