{% extends "base.html" %} {% from "units/_m.html" import doc_badge with context %} {% block title %}{{ t('Dispatch Notes') }}{% endblock %} {% block content %}

{{ t('Dispatch Notes') }}

{% if can_write %}
+ {{ t('New dispatch') }}
{% endif %}
{% for d in rows %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Date') }}{{ t('Project') }}{{ t('Customer') }}{{ t('Site') }}{{ t('Vehicle') }} / {{ t('Driver') }}{{ t('Units') }}{{ t('Status') }}
{{ d.number }}{{ d.date }}{{ d.pcode or '—' }}{{ d.cust_en or '—' }} {{ d.site or '—' }}{{ d.vehicle or '' }}{% if d.driver %}
{{ d.driver }}{% endif %}
{{ d.n }}{{ doc_badge(d.state) }}
{{ t('No dispatch notes yet.') }}
{% endblock %}