{% load basefilters %} {% load attendancefilters %} {% load static %} {% load i18n %} {% include 'filter_tags.html' %}
{% trans "Employee" %}
{% trans "Requested Shift" %}
{% trans "Previous/Current Shift" %}
{% trans "Requested Date" %}
{% trans "Requested Till" %}
{% trans "Description" %}
{% for shift_request in data %}
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}}
{% if shift_request.approved == False and not shift_request.canceled %} {% endif %} {% if perms.base.delete_shiftrequest %}
{% csrf_token %}
{% endif %}
{% if shift_request.approved == False %} {% if perms.base.change_shiftrequest and shift_request.approved == False or request.user|is_reportingmanager %} {% if shift_request.canceled %} {% elif request.user.employee_get == shift_request.employee_id and not perms.base.change_shiftrequest %} {% else %} {% trans "Approve" %} {% endif %} {% endif %} {% elif shift_request.approved == True %} {% endif %} {% if not perms.base.change_shiftrequest and not request.user|is_reportingmanager and request.user == shift_request.employee_id.employee_user_id %} {% if shift_request.canceled %} {% endif %} {% endif %}
{% if shift_request.approved == False and shift_request.canceled == False %} {% trans "Cancel" %} {% endif %}
{% endfor %}
{% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}.