{% extends "base.html" %} {% from "_macros.html" import wf_badge with context %} {% block title %}{{ t('Vendor Management') }}{% endblock %} {% block content %}

{{ t('Vendor Management') }}

{% if has('portal') %}{{ t('Supplier registrations') }}{% endif %} {{ t('Expiring Documents') }} {% if can_write %}+ {{ t('New Vendor') }}{% endif %}
{{ t('All') }} {% for s in statuses %}{{ t(s|capitalize) }}{% endfor %}
{% if status %}{% endif %}
{% for v in rows %} {% else %}{% endfor %}
{{ t('Vendor') }}{{ t('Category') }}{{ t('VAT Number') }}{{ t('Contact') }} {{ t('Rating') }}{{ t('Documents') }}{{ t('Status') }}
{{ nm(v) }}{{ v.vendor_category or '' }}{{ v.vat_no or '' }} {{ v.contact_person or '' }}
{{ v.phone or '' }}
{% if v.score %}{{ '%.1f' % v.score }} / 5{% else %}—{% endif %} {% if v.expiring %}{{ v.expiring }} {{ t('expiring') }}{% endif %} {{ wf_badge(v.vendor_status) }}
{{ t('Nothing yet.') }}
{% endblock %}