{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state %} {% block title %}{{ _('Time Entry Approvals') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Time Entry Approvals')} ] %} {{ page_header( icon_class='fas fa-check-circle', title_text=_('Time Entry Approvals'), subtitle_text=_('Review and approve time entries'), breadcrumbs=breadcrumbs ) }}

{{ _('Pending Approvals') }}

{% if pending_approvals %}
{% for approval in pending_approvals %}

{{ _('Time Entry') }} #{{ approval.time_entry.id }}

{{ _('Requested by') }}: {{ approval.requested_by_user.username if approval.requested_by_user else 'N/A' }} • {{ approval.time_entry.duration_hours|round(2) }} {{ _('hours') }}

{% if approval.time_entry.project %}

{{ approval.time_entry.project.name }}

{% elif approval.time_entry.client %}

{{ approval.time_entry.client.name }} ({{ _('Direct') }})

{% endif %}
{% if approval.comments %}

{{ approval.comments }}

{% endif %}
{% endfor %}
{% else %} {{ empty_state( icon='fas fa-check-circle', title=_('No pending approvals'), message=_('All time entries have been reviewed.') ) }} {% endif %}

{{ _('My Requests') }}

{% if my_requests %}
{% for request in my_requests %}

{{ _('Time Entry') }} #{{ request.time_entry.id }}

{{ _('Status') }}: {{ request.status.value|title }}

{% endfor %}
{% else %} {{ empty_state( icon='fas fa-inbox', title=_('No pending requests'), message=_('You have no time entry approval requests.') ) }} {% endif %}
{% endblock %}