{% extends "sample_base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %}
Admin
{% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %} {% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% if request.user.is_superuser == True or request.user.user_type == 'Mother_Organization_admin' or request.user.user_type == 'Sister_Organization_admin' %}
Sample Admin
Sample Admin
{% csrf_token %}
{{form.department|as_crispy_field }}
Show
{% endif %}
Sample Admin
{% if team_user_list %}
{% for admin in team_user_list %} {% endfor %}
SL No
Department
Admin
Action
{{forloop.counter}}
{{ admin.department }}
{{ admin.user }}
{% if team_user_list.has_other_pages %}
{% if team_user_list.has_previous %}
Previous
{% if team_user_list.number > 3 %}
1
{% if team_user_list.number > 4 %}
...
{% endif %} {% endif %} {% endif %} {% for num in team_user_list.paginator.page_range %} {% if team_user_list.number == num %}
{{ num }}
{% elif num > team_user_list.number|add:'-3' and num < team_user_list.number|add:'3' %}
{{ num }}
{% endif %} {% endfor %} {% if team_user_list.has_next %} {% if team_user_list.number < team_user_list.paginator.num_pages|add:'-3' %}
...
{{ team_user_list.paginator.num_pages }}
{% elif team_user_list.number < team_user_list.paginator.num_pages|add:'-2' %}
{{ team_user_list.paginator.num_pages }}
{% endif %}
Next
{% endif %}
{% endif %}
{% else %}
SL No
Department
Team
Admin
Action
No Data Found
{% endif %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}