{% load i18n static basefilters horillafilters %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% if employee.employee_work_info.shift_id %} {% if employee.employee_work_info.shift_id %} {% trans "Current Shift" %}   :   {{employee.employee_work_info.shift_id}} {% endif %} {% endif %}
{% if work_data %}
{% trans "Employee" %}
{% trans "Requested Work Type" %}
{% trans "Previous/Current Work Type" %}
{% trans "Requested Date" %}
{% trans "Requested Till" %}
{% trans "Description" %}
{% trans "Status" %}
{% trans "Actions" %}
{% if not request.GET.profile %} {% if perms.base.change_worktyperequest or request.user|is_reportingmanager %}
{% endif %} {% endif %}
{% for work_type_request in work_data %}
Username
{{work_type_request.employee_id}}
{{work_type_request.work_type_id}}
{{work_type_request.previous_work_type_id}}
{{work_type_request.requested_date}}
{{work_type_request.requested_till}}
{{work_type_request.description}}
{{work_type_request.request_status}}
{% if work_type_request.approved == False and not work_type_request.canceled %} {% else %} {% endif %} {% if work_type_request.approved == False %}
{% csrf_token %}
{% else %} {% endif %}
{% if not request.GET.profile %} {% if perms.base.change_worktyperequest or request.user|is_reportingmanager %}
{% if work_type_request.approved == False and work_type_request.canceled == False %} {% else %} {% endif %} {% if work_type_request.canceled == False %} {% else %} {% endif %}
{% endif %} {% endif %}
{% endfor %}
{% else %}
{% trans "No work type request has been created." %}
{% endif %}
{% if rshift_assign %}
{% trans "Employee" %}
{% trans "Title" %}
{% trans "Based On" %}
{% trans "Rotate" %}
{% trans "Start Date" %}
{% trans "Current Shift" %}
{% trans "Next Switch" %}
{% trans "Next Shift" %}
{% trans "Status" %}
{% if not request.GET.profile and perms.base.change_rotatingworktypeassign or perms.base.delete_rotatingshiftassign or request.user|check_manager:rshift_assign.0 or request.user|is_reportingmanager %}
{% trans "Actions" %}
{% endif %}
{% for rshift in rshift_assign %}
Username
{{rshift.employee_id}}
{{rshift.rotating_shift_id}}
{{rshift.get_based_on_display }}
{% if rshift.based_on == 'after' %} {% trans "Rotate after" %}{{rshift.rotate_after_day}}{% trans "days" %} {% elif rshift.based_on == "weekly" %} {% trans "Weekly every" %}{{rshift.rotate_every_weekend}} {% elif rshift.based_on == "monthly" %} {% if rshift.rotate_every == "1" %} {% trans "Rotate every 1st day of month " %} {% elif rshift.rotate_every == "2" %} {% trans "Rotate every 2nd day of month " %} {% elif rshift.rotate_every == "3" %} {% trans "Rotate every 3rd day of month" %} {% elif rshift.rotate_every == "last" %} {% trans "Rotate every last day of month" %} {% else %} {% trans "Rotate every " %}{{rshift.rotate_every}}{% trans "th day ofmonth " %} {% endif %} {% endif %}
{{rshift.start_date}}
{{rshift.current_shift}}
{{rshift.next_change_date}}
{{rshift.next_shift}}
{% if rshift.is_active %} {% trans "Is Active" %} {% else %} {% trans "Archived" %} {% endif %}
{% if not request.GET.profile and perms.base.change_rotatingworktypeassign or perms.base.delete_rotatingshiftassign or request.user|check_manager:rshift or request.user|is_reportingmanager %}
{% if perms.base.change_rotatingshiftassign or request.user|check_manager:rshift or request.user|is_reportingmanager %} {% endif %} {% if perms.base.change_rotatingshiftassign or request.user|is_reportingmanager %} {% if rshift.is_active %}
{% else %}
{% endif %} {% endif %} {% if perms.base.delete_rotatingshiftassign or request.user|is_reportingmanager %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No rotating shift has been assigned." %}
{% endif %}
{% if rwork_type_assign %}
{% trans "Employee" %}
{% trans "Title" %}
{% trans "Based On" %}
{% trans "Rotate" %}
{% trans "Start Date" %}
{% trans "Current Work Type" %}
{% trans "Next Switch" %}
{% trans "Next Work Type" %}
{% trans "Status" %}
{% if not request.GET.profile and perms.base.change_rotatingworktypeassign or perms.base.delete_rotatingworktypeassign or request.user|check_manager:rwork_type_assign.0 or request.user|is_reportingmanager %}
{% trans "Actions" %}
{% endif %}
{% for rwork_type in rwork_type_assign %}
Username
{{rwork_type.employee_id}}
{{rwork_type.rotating_work_type_id}}
{{rwork_type.get_based_on_display}}
{% if rwork_type.based_on == 'after' %} {% trans "Rotate after " %}{{rwork_type.rotate_after_day}}{% trans " days" %} {% elif rwork_type.based_on == "weekly" %} {% trans "Weekly every " %}{{rwork_type.rotate_every_weekend}} {% elif rwork_type.based_on == "monthly" %} {% if rwork_type.rotate_every == "1" %} {% trans "Rotate every 1st day of month " %} {% elif rwork_type.rotate_every == "2" %} {% trans "Rotate every 2nd day of month " %} {% elif rwork_type.rotate_every == "3" %} {% trans "Rotate every 3rd day of month" %} {% elif rwork_type.rotate_every == "last" %} {% trans "Rotate every last day of month " %} {% else %} {% trans "Rotate every " %}{{rwork_type.rotate_every}}{% trans "th day of month " %} {% endif %} {% endif %}
{{rwork_type.start_date}}
{{rwork_type.current_work_type}}
{{rwork_type.next_change_date}}
{{rwork_type.next_work_type}}
{% if rwork_type.is_active %} {% trans "Is Active" %} {% else %} {% trans "Archived" %} {% endif %}
{% if not request.GET.profile and perms.base.change_rotatingworktypeassign or perms.base.delete_rotatingworktypeassign or request.user|check_manager:rwork_type %}
{% if perms.base.change_rotatingworktypeassign or request.user|is_reportingmanager %} {% endif %} {% if perms.base.change_rotatingworktypeassign or request.user|is_reportingmanager %} {% if rwork_type.is_active %}
{% else %}
{% endif %} {% endif %} {% if perms.base.delete_rotatingworktypeassign or request.user|is_reportingmanager %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No rotating work type has been assigned." %}
{% endif %}
{% if shift_data %}
{% trans "Employee" %}
{% trans "Requested Shift" %}
{% trans "Previous/Current Shift" %}
{% trans "Requested Date" %}
{% trans "Requested Till" %}
{% trans "Description" %}
{% trans "Status" %}
{% trans "Actions" %}
{% if not request.GET.profile %} {% if perms.base.change_shiftrequest or request.user|check_manager:shift_data.0 %}
{% endif %} {% endif %}
{% for shift_request in shift_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 %} {% trans "Approved" %} {% elif shift_request.canceled %} {% trans "Rejected" %} {% else %} {% trans "Requested" %} {% endif %}
{% if shift_request.approved == False and not shift_request.canceled %} {% else %} {% endif %} {% if shift_request.approved == False %}
{% csrf_token %}
{% else %} {% endif %}
{% if not request.GET.profile %} {% 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 %} {% endif %}
{% endfor %}
{% else %}
{% trans "No Shift request has been created." %}
{% endif %}