{% extends "base.html" %} {% from "_macros.html" import list_filters, branch_tag, wf_badge with context %} {% block title %}{{ t(info.title) }}{% endblock %} {% block content %}

{{ t(info.title) }}

{% if can_write %}
+ {{ t('New ' ~ info.label) }}
{% endif %}
{{ t('All') }} {{ t('Waiting Approval') }}
{{ list_filters(f, ['draft', 'submitted', 'approved', 'rejected', 'done', 'cancelled']) }}
{% if has('projects') %}{% endif %} {% for d in rows %} {% if has('projects') %}{% endif %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Date') }}{{ t('Required by') }}{{ t('Branch') }}{{ t('Project') }}{{ t('Department') }}{{ t('Requested by') }}{{ t('Lines') }}{{ t('Status') }}
{{ d.number }}{{ d.date }}{{ d.required_date or '' }} {{ branch_tag(branches, d.branch_id) }}{{ d.pj_code or '' }}{{ d.department or '' }}{{ d.requester or d.username or '' }} {{ d.nlines }}{{ wf_badge(d.state) }}
{{ t('Nothing yet.') }}
{% endblock %}