{% extends 'base.html' %} {% block content %}

Apply for Leave

{% if rh_remaining is not none %} RH Remaining: {{ rh_remaining }} / {{ max_rh }} {% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Choose RH for Optional/Restricted Holiday dates.
📅
📅
RH must be applied for an Optional Holiday date. Single-day enforced.
RH dates are location-sensitive. Only Optional holidays are eligible.
Eligible RH Dates (Optional Holidays)
Tip: click a date chip to set it quickly.
Available Balance {{ current_year }}
{% for bal in balances %} {% set is_rh = rh_type_id and (bal.leave_type_id == rh_type_id) %} {% endfor %} {% if not balances %} {% endif %}
Leave Type Balance
{% if is_rh %} Restricted Holiday (RH) {% else %} {{ bal.leave_type.name if bal.leave_type else '—' }} {% endif %} {% if is_rh %} {{ rh_remaining }} {% else %} {{ bal.balance }} {% endif %}
No balances found.
{% endblock %}