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

Holiday Master & RH Config

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Add New Holiday
Restricted Holiday (RH) & Sandwich Policy

Holiday List
{% for h in holidays %} {% else %} {% endfor %}
# Date Name Type Location Action
{{ loop.index }} {{ h.date.strftime('%Y-%m-%d') }} {{ h.name }} {% set t = (h.type or '')|lower %} {% if t == 'optional' %} Restricted Holiday {% elif t in ['mandatory', 'national'] %} Gazetted Holiday {% else %} {{ h.type or '—' }} {% endif %} {% if not h.location %} - {% elif h.location|string|upper == 'ALL' %} All Locations {% else %} {{ h.location }} {% endif %}
No holidays defined.
{% endblock %}