{% extends "portal/_layout.html" %} {% block title %}{{ t('Documents') }}{% endblock %} {% block content %}

{{ t('Documents') }}

{% for d in docs %} {% else %}{% endfor %}
{{ t('Document') }}{{ t('Number') }}{{ t('Expiry date') }}
{{ t(d.doc_type) }}{{ d.number or '' }} {{ d.expiry_date or '—' }}{% if d.expiry_date and d.expiry_date < today %} {{ t('Expired') }}{% elif d.expiry_date and d.expiry_date <= soon %} {{ t('Expires soon') }}{% endif %} {% if d.expiry_date and d.expiry_date <= soon %}{{ t('Renew') }}{% endif %}
{{ t('Nothing yet.') }}

{{ t('Send a new or renewed document') }}

{% if sent %}

{{ t('Sent to us') }}

{% for d in sent %}{% endfor %}
{{ t(d.doc_type) }}{{ d.submitted_at[:10] }}{{ t({'pending': 'Being checked', 'approved': 'Accepted', 'rejected': 'Not accepted'}[d.state]) }}{% if d.reason %} {{ d.reason }}{% endif %}
{% endif %} {% endblock %}