{% extends "base.html" %} {% block title %}{{ t('My Approvals') }}{% endblock %} {% block content %}

{{ t('My Approvals') }}

{{ t('Documents waiting for your decision, your own documents waiting for others, and your notifications.') }}
{% for tk in tasks %} {% else %}{% endfor %}
{{ t('Document') }}{{ t('Step') }}{{ t('Requested by') }}{{ t('Since') }}{{ t('Amount') }}{{ t('Decision') }}
{{ t(types[tk.doc_type].label) }} {{ tk.title or '' }}{% if tk.delegated %} {{ t('Delegated to you') }}{% endif %} {{ tk.step_name or tk.step_no }}{{ tk.req_name or tk.req_user }}{{ tk.requested_at[:10] }} {{ tk.amount|money(tk.currency) }} {{ tk.currency or '' }}
{{ t('Open') }}
{{ t('Nothing is waiting for your approval.') }}
{% if mine %}

{{ t('My documents waiting for approval') }}

{% for r in mine %}{% endfor %}
{{ t('Document') }}{{ t('Waiting at') }}{{ t('Submitted') }}{{ t('Amount') }}
{{ t(types[r.doc_type].label) }} {{ r.title or '' }}{{ r.step_name or r.current_step }}{{ r.requested_at[:10] }}{{ r.amount|money(r.currency) }} {{ r.currency or '' }}
{% endif %}

{{ t('Notifications') }}

{{ t('Out of office') }}

{{ t('While you are away, your approvals go to the person you choose. You can still approve yourself.') }}

{% for d in delegations %}
{{ d.full_name or d.username }} · {{ d.date_from }} → {{ d.date_to }}{% if d.reason %} · {{ d.reason }}{% endif %}
{% endfor %}
{% endblock %}