{% extends "base.html" %} {% block title %}{{ t('Leave') }}{% endblock %} {% block content %}

{{ t('Leave') }}

{% if can_write %}
+ {{ t('New leave request') }}
{% endif %}
{% for k, lbl in (('', 'All'), ('draft', 'Draft'), ('approved', 'Approved'), ('cancelled', 'Cancelled')) %}{{ t(lbl) }}{% endfor %}
{% for l in rows %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Employee') }}{{ t('Type') }}{{ t('From') }}{{ t('To') }}{{ t('Days') }}{{ t('Notes') }}{{ t('Status') }}
{{ l.number }}{{ l.code }} {{ nm(l) }}{{ t(kinds[l.kind]) }}{{ l.date_from }}{{ l.date_to }} {{ l.days|round(1) }}{{ l.notes or '' }} {{ t(l.state|capitalize) }} {% if can_write %} {% if l.state == 'draft' %}{{ t('Edit') }}
{% endif %} {% if l.state == 'approved' %}
{% endif %} {% if l.state in ('draft', 'cancelled') %}
{% endif %} {% endif %}
{{ t('Nothing yet.') }}
{% endblock %}