{% extends 'base.html' %}{% from '_m.html' import st, avatar %}{% block title %}Leave{% endblock %}{% block content %}

Leave

Request time off and manage approvals

{% if todo %}

Waiting for your approval

{% for l in todo %}{% endfor %}
EmployeeTypeDatesDaysReason
{{ avatar(l.employee_id, l.full_name, l.photo, 'sm') }}{{l.full_name}}{{l.tname}}{{l.start}} → {{l.end}}{{l.days}}{{l.reason}}
{% endif %} {% if g.emp %}

Apply for leave

My balance ({{today[:4]}})

{% for b in bal if b.total<365 %}{% endfor %}
TypeRemainingUsed
{{b.name}}{{b.left|round(1)}} / {{b.total}}{{b.used|round(1)}}

My requests

{% for l in mine %}{% else %}{% endfor %}
TypeDatesDaysStatusNote
{{l.tname}}{{l.start}} → {{l.end}}{{l.days}}{{ st(l.status) }}{{l.note or ''}}{% if l.status=='Pending' %}
{% endif %}
No requests yet.
{% endif %}{% endblock %}