{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %} Roster Plan {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if request.user.is_superuser == True %}
{% csrf_token %}
{{form.mother_organization|as_crispy_field }}
{{form.sister_organization|as_crispy_field }}
{{form.branch|as_crispy_field }}
{% endif %} {% if request.user.user_type == 'Mother_Organization_admin' %}
{% csrf_token %}
{{form.sister_organization|as_crispy_field }}
{{form.branch|as_crispy_field }}
{% endif %} {% if request.user.user_type == 'Sister_Organization_admin' %}
{% csrf_token %}
{{form.branch|as_crispy_field }}
{% endif %} {% if request.user.user_type == 'Branch' %}
{% endif %}

Roster Planning

{% if request.user.user_type == 'Branch' %} {% endif %}
{% if roaster_plan_list %}
{% for item in roaster_plan_list %} {% endfor %}
SL No Mother Organization Sister Organization Branch Type Group Shift Date Action
{{forloop.counter}} {{ item.mother_organization }} {{ item.sister_organization }} {{ item.branch.name_en }} {{ item.type }} {{ item.group }} {{ item.shift }} {{ item.date|date:'Y-m-d' }} {% if request.user.is_superuser == True or request.user.user_type == 'Mother_Organization_admin' %} {% comment %} {% elif item.date <= current_date %} {% endcomment %} {% else %} {% endif %}
{% if roaster_plan_list.has_other_pages %} {% endif %}
{% endif %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}