{% load basefilters %} {% load horillafilters %} {% load static %} {% load i18n %} {% include 'filter_tags.html' %}
{% trans "Select All Shifts" %}
{% trans "Unselect All Shifts" %}
{% trans "Export Shifts" %}
{% trans "Employee" %}
{% trans "Allocated 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 %}
{% endif %}
{% for shift_request in data1 %}
Username
{{shift_request.employee_id}}
{{shift_request.reallocate_to}}
{{shift_request.shift_id}}
{{shift_request.previous_shift_id}}
{{shift_request.requested_date}}
{{shift_request.requested_till}}
{{shift_request.description}}
{% 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 %}
{% if perms.base.change_shiftrequest or request.user|is_reportingmanager %}
{% if shift_request.approved == False and shift_request.canceled == False%} {% trans "Approve" %} {% else %} {% endif %}
{% if shift_request.canceled == False %} {% trans "Cancel" %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}.