{% load i18n %}
{% if instance.is_approved and instance.status == 'requested' %} {% if instance.employee_id == request.user.employee_get and not request.user.is_superuser %} {% else %} current_date.month %} onclick = "leaveRequestConfirm('This leave request is for the month of {{instance.start_date|date:'F'}}. Approval depends on the {{instance.employee_id.get_full_name}} having available leave days for this month.',event);" {% else %} onclick = "return confirm('Do You really want to Approve this request?')"; {% endif %}> {% endif %} {% else %} {% endif %} {% if instance.status != 'rejected' and instance.end_date >= current_date %} {% comment %} {% if instance.status != 'cancelled' %} {% endcomment %} {% else %} {% endif %}