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

Leave Balance Allocation (Post‑Freeze)

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %} {% if guard_exists and guard_batch %}
Existing allocation found. Batch: {{ guard_batch.batch_key }} — same FY, leave type & strategy not yet revoked.
{% endif %}
FY label = FY start year (Apr–Mar).
Months ≤ this are frozen (no re-credit).
{% if batch_result %}
Batch Results — {{ batch_result.leave_type }} {% if batch_result.batch_key %} Batch: {{ batch_result.batch_key }} {% endif %}
{% for entry in batch_result.entries %} {% endfor %}
# Employee Allocated (Δ) Remarks
{{ loop.index }} {{ entry.employee_name }} {{ entry.allocated }} {{ entry.remark }}
{% endif %}
{% endblock %}