{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% block Style %} {% endblock Style %} {% block MainContent %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if request.user.is_superuser == True %}

Leave Allocation

{% csrf_token %}
{{form.mother_organization|as_crispy_field }}
{{form.sister_organization|as_crispy_field }}
{{form.branch|as_crispy_field }}
{% elif request.user.user_type == 'Mother_Organization_admin'%}

Leave Allocation

{% csrf_token %}
{{form.sister_organization|as_crispy_field }}
{{form.branch|as_crispy_field }}
{% elif request.user.user_type == 'Sister_Organization_admin'%}

Leave Allocation

{% csrf_token %}
{{form.branch|as_crispy_field }}
{% elif request.user.user_type == 'Branch' or request.user.user_type == 'Regular'%}
{% endif %} {% if leave_allocated %}

Levae Allocation

{% if request.user.user_type == 'Branch' or request.user.user_type == 'Regular'%}
{% if 'leave_allocation_add' in user_permission_list %}
{% endif %}
{% endif %}
{% if leave_allocated %}
{% endif%}
{% for appli in leave_allocated %} {% endfor %}
SL Leave Type Department Designation Allocated Year Action
{{ forloop.counter }} {{ appli.leave_type}} {{ appli.department}} {{ appli.designation}} {{ appli.allocated}} {{ appli.year}}
    {% if 'leave_allocation_update' in user_permission_list or request.user.user_type == 'Sister_Organization_admin' or request.user.user_type == 'Mother_Organization_admin' or request.user.is_superuser == True %}
  • {% endif %} {% if 'leave_allocation_delete' in user_permission_list or request.user.user_type == 'Sister_Organization_admin' or request.user.user_type == 'Mother_Organization_admin' or request.user.is_superuser == True %}
  • {% endif %}
{% else %}
{% if request.user.user_type == 'Branch' or request.user.user_type == 'Regular'%}
{% if 'benefit_type_add' in user_permission_list or request.user.user_type == 'Sister_Organization_admin' or request.user.user_type == 'Mother_Organization_admin' or request.user.is_superuser == True %}
{% endif %}
{% endif %}
SL Leave Type Employee Name Allocated Year Action
No Data Found
{% endif %}
{% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}