{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %} Departments {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if request.user.is_superuser == True %}

Department

{% 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' %}

Department

{% csrf_token %}
{{form.sister_organization|as_crispy_field }}
{{form.branch|as_crispy_field }}
{% endif %} {% if request.user.user_type == 'Sister_Organization_admin' %}

Department

{% csrf_token %}
{{form.branch|as_crispy_field }}
{% endif %} {% if request.user.user_type == 'Branch' or request.user.user_type == 'Regular'%}
{% endif %}

Department

{% if request.user.user_type == 'Branch' or request.user.user_type == 'Regular'%} {% if 'department_add' in user_permission_list %} {% endif %} {% endif %}
{% if department_list %}
{% for department in department_list %} {% endfor %}
SL No Mother Organization Sister Organization Branch Department Action
{{forloop.counter}} {{ department.mother_organization }} {{ department.sister_organization }} {{ department.branch.name_en }} {{ department.name_en }}
    {% if 'department_update' in user_permission_list or request.user.user_type == 'Sister_Organization_admin' or request.user.user_type == 'Mother_Organization_admin' or request.user.is_superuser == True %}
  • {% endif %} {% if 'department_delete' in user_permission_list or request.user.user_type == 'Sister_Organization_admin' or request.user.user_type == 'Mother_Organization_admin' or request.user.is_superuser == True %}
  • {% endif %}
{% if department_list.has_other_pages %} {% endif %}
{% endif %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}