{% load horillafilters %} {% load basefilters %} {% load static %} {% load i18n %} {% include 'filter_tags.html' %}
{% if data %}
{% for shift_request_list in data %}
{{shift_request_list.list.paginator.count}} {{shift_request_list.grouper}}
{% trans "Employee" %}
{% trans "Requested Shift" %}
{% trans "Previous/Current Shift" %}
{% trans "Requested Date" %}
{% trans "Requested Till" %}
{% trans "Description" %}
{% trans "Comment" %}
{% trans "Actions" %}
{% if perms.base.change_shiftrequest and shift_request.approved == False or request.user|is_reportingmanager %}
{% trans "Confirmation" %}
{% endif %}
{% for shift_request in shift_request_list.list %}
Username
{{shift_request.employee_id}}
{{shift_request.shift_id}}
{{shift_request.previous_shift_id}}
{{shift_request.requested_date}}
{{shift_request.requested_till}}
{{shift_request.description|truncatechars:17}}
{% if shift_request.approved == False and not shift_request.canceled %} {% else %} {% endif %} {% if shift_request.approved == False %}
{% csrf_token %}
{% else %} {% endif %}
{% if perms.base.change_shiftrequest or request.user|is_reportingmanager %}
{% if shift_request.approved == False and shift_request.canceled == False%} {% else %} {% endif %} {% if shift_request.canceled == False %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% trans "Page" %} {{ shift_request_list.list.number }} {%trans "of" %} {{shift_request_list.list.paginator.num_pages }}.
{% endfor %}
{% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}.
{% else %}
{% trans "No group result found!" %}
{% endif %}
{% if allocated_data %}
{% for shift_request_list in allocated_data %}
{{shift_request_list.list.paginator.count}} {{shift_request_list.grouper}}
{% trans "Employee" %}
{% trans "Allocated Employee" %}
{% trans "User Availability" %}
{% trans "Requested Shift" %}
{% trans "Previous/Current Shift" %}
{% trans "Requested Date" %}
{% trans "Requested Till" %}
{% trans "Description" %}
{% trans "Comment" %}
{% if perms.base.change_shiftrequest and shift_request.approved == False or request.user|is_reportingmanager %}
{% trans "Actions" %}
{% endif %}
{% trans "Confirmation" %}
{% for shift_request in shift_request_list.list %}
Username
{{shift_request.employee_id}}
Username
{{shift_request.reallocate_to}}
{% if shift_request.reallocate_approved == True %}
{% trans "Available" %}
{% elif shift_request.reallocate_canceled == True %}
{% trans "Not Available" %}
{% else %}
{% trans "Not Marked" %}
{% endif %}
{{shift_request.shift_id}}
{{shift_request.previous_shift_id}}
{{shift_request.requested_date}}
{{shift_request.requested_till}}
{{shift_request.description|truncatechars:17}}
{% if request.user|is_reportingmanager %}
{% if shift_request.approved == False and not shift_request.canceled %} {% else %} {% endif %} {% if shift_request.approved == False and shift_request.canceled == False %}
{% csrf_token %}
{% elif perms.base.change_shiftrequest or request.user|is_reportingmanager %}
{% csrf_token %}
{% else %} {% endif %}
{% endif %}
{% if request.user.employee_get == shift_request.reallocate_to %} {% if shift_request.approved == True or shift_request.canceled == True or shift_request.reallocate_approved == True %} {% else %} {% endif %} {% endif %} {% if perms.base.change_shiftrequest or request.user|is_reportingmanager %} {% if shift_request.approved == False and shift_request.canceled == False %} {% else %} {% endif %} {% endif %} {% if request.user.employee_get == shift_request.reallocate_to %} {% if shift_request.reallocate_canceled == True or shift_request.approved == True %} {% else %} {% endif %} {% endif %} {% if request.user.employee_get == shift_request.employee_id and not request.user|is_reportingmanager %} {% if shift_request.approved == False and not shift_request.canceled %} {% else %} {% endif %} {% if shift_request.approved == False and shift_request.canceled == False %}
{% csrf_token %}
{% elif perms.base.change_shiftrequest or request.user|is_reportingmanager %}
{% csrf_token %}
{% else %} {% endif %} {% endif %} {% if request.user|is_reportingmanager %} {% if shift_request.canceled == True %} {% else %} {% endif %} {% endif %}
{% endfor %}
{% trans "Page" %} {{ shift_request_list.list.number }} {%trans "of" %} {{shift_request_list.list.paginator.num_pages }}.
{% endfor %}
{% trans "Page" %} {{ allocated_data.number }} {% trans "of" %} {{ allocated_data.paginator.num_pages }}.
{% else %}
{% trans "No group result found!" %}
{% endif %}