{% extends "portal/_layout.html" %}
{% block title %}{{ t('Documents') }}{% endblock %}
{% block content %}
{{ t('Documents') }}
| {{ t('Document') }} | {{ t('Number') }} | {{ t('Expiry date') }} | |
{% for d in docs %}| {{ 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 %} |
{% else %}| {{ t('Nothing yet.') }} |
{% endfor %}
{% if sent %}{{ t('Sent to us') }}
{% for d in sent %}| {{ 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 %} |
{% endfor %}
{% endif %}
{% endblock %}