{% extends 'base.html' %} {% block content %}
| # | Policy | Leave Type | Role | Department | Quota | Credit Basis | Pro-rata | Credit Lines | Max / Month | Max Days | RH Limit | Join Cutoff | Status | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {{ p.policy_name or '-' }} | {{ p.leave_type.name if p.leave_type else '-' }} | {{ p.role.name if p.role else 'All' }} | {{ p.department.name if p.department else 'All' }} | {{ p.annual_quota or '-' }} | {{ (p.credit_basis or 'manual')|upper }} | {% if p.pro_rata_credit %} Yes {% else %} No {% endif %} | {% if lines %} {% else %} No lines {% endif %} | {{ p.max_leaves_per_month or '-' }} | {{ p.max_consecutive_days or '-' }} | {{ p.rh_consecutive_limit or '-' }} | {% if p.join_after_cutoff_month %} {{ p.join_after_cutoff_month }}{% if p.join_after_cutoff_day %}/{{ p.join_after_cutoff_day }}{% endif %} {% else %} - {% endif %} | {% if p.is_active %} Active {% else %} Inactive {% endif %} |
|
| No policies defined. | ||||||||||||||