{% extends "base.html" %} {% from "_macros.html" import wf_badge with context %} {% block title %}{{ nm(v) }}{% endblock %} {% block content %}
| {{ icon('file') }} {{ t(d.doc_type) }} {{ d.number or '' }}{% if d.expiry_date %} · {{ t('expires') }} {{ d.expiry_date }}{% endif %} {{ t('Sent through the supplier portal') }} {{ d.submitted_at[:10] }} |
{% if can_write %} {% endif %} |
| {{ icon('bank') }} {{ t('Bank details change') }} · IBAN …{{ c.iban[-4:] }} {{ c.created_at[:10] }} | {{ t({'pending': 'Waiting for approval', 'approved': 'Approved', 'rejected': 'Rejected'}.get(c.state, c.state)) }} |
| {{ t('Type') }} | {{ t('Number') }} | {{ t('Issue date') }} | {{ t('Expiry date') }} | {{ t('File') }} | |
|---|---|---|---|---|---|
| {{ t(d.doc_type) }}{% if d.notes %} {{ d.notes }}{% endif %} | {{ d.number or '' }} | {{ d.issue_date 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.filename %}{{ d.original_name }}{% endif %} | {% if can_write %}{% endif %} |
| {{ t('Nothing yet.') }} | |||||
| {{ u.full_name or '' }} {{ u.email }} |
{% if not u.active %}{{ t('No access') }} {% elif u.activated_at %}{{ t('Active') }}{% if u.last_login %} {{ t('last sign-in') }} {{ u.last_login[:16].replace('T', ' ') }}{% endif %} {% elif u.activation_expires and u.activation_expires > now_iso %}{{ t('Invited') }} {{ t('link valid until') }} {{ u.activation_expires[:16].replace('T', ' ') }} {% else %}{{ t('Link expired') }}{% endif %} | {% if can_write %} {% if u.active %}{% endif %} {% endif %} |
| {{ t('No portal users yet.') }} |
| {{ t('Date') }} | {{ t('Period') }} | {% for c in criteria %}{{ t(c|capitalize) }} | {% endfor %}{{ t('Average') }} | {{ t('Comments') }} | {{ t('Evaluated by') }} | |||
|---|---|---|---|---|---|---|---|---|
| {{ e.date }} | {{ e.period or '' }} | {% for c in criteria %}{{ e[c] }} | {% endfor %}{{ '%.1f' % ((e.quality + e.delivery + e.price + e.service) / 4) }} | {{ e.comments or '' }} | {{ e.full_name or e.username or '' }} | |||
| {{ t('Nothing yet.') }} | ||||||||
| {{ t('Average') }} | {% for c in criteria %}{{ '%.1f' % scores[c] }} | {% endfor %}{{ '%.1f' % overall }} | ||||||
| {{ h.ts.replace('T', ' ') }} | {{ h.action }} | {{ h.details or '' }} |