{% extends 'student_template/base_template.html' %} {% block page_title %} Leave Report and Apply for Leave {% endblock page_title %} {% block main_content %} {% load static %}

Apply For Leave

{% comment %} Display Messages {% endcomment %} {% if messages %}
{% for message in messages %} {% if message.tags == "error" %} {% elif message.tags == "success" %} {% endif %} {% endfor %}
{% endif %}
{% csrf_token %}

Leave Apply History

{% for leave in leave_data %} {% endfor %}
#ID Leave Date Leave Message Status
{{ leave.id }} {{ leave.leave_date }} {{ leave.leave_message }} {% if leave.leave_status == 1 %} Approved {% elif leave.leave_status == 2 %} Rejected {% else %} Pending {% endif %}
{% endblock main_content %} {% block custom_js %} {% endblock custom_js %}