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

Leave Policy Configuration

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Add New Leave Policy
Existing Leave Policies
{% for p in policies %} {% else %} {% endfor %}
# Leave Type Role Department Quota Monthly Credit Max Days RH Limit Join Cutoff Action
{{ loop.index }} {{ p.leave_type.name }} {{ p.role.name if p.role else 'All' }} {{ p.department.name if p.department else 'All' }} {{ p.annual_quota }} {% if p.monthly_credit %} Yes {% else %} No {% endif %} {{ p.max_consecutive_days }} {{ p.rh_consecutive_limit or '-' }} {{ p.join_after_cutoff_month or '-' }}
No policies defined.
{% endblock %}