{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %} Show Causes {% endblock title %} {% load widget_tweaks %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if request.user.is_superuser == True %}
Show Causes
{% if request.user.user_type != 'Regular'%} {% endif %}
{% 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' %}

Show Causes

{% if request.user.user_type != 'Regular'%} {% endif %}
{% 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 %}
Show Causes
{% csrf_token %} {% for field in form_status %} {% render_field field class="form-control mt-1" placeholder=field.label %} {% endfor %}
{% if show_causes_list %}
{{show_causes_list.ans_date}} {% for show_causes in show_causes_list %} {% if show_causes.status == 'answered' %} {% elif show_causes.status != 'answered' %} {% endif %} {% endfor %}
SL No Employee Subject Status Causes Date Ans Date Action
{{forloop.counter}} {{ show_causes.employee.name_en }} {{ show_causes.subject }} {{ show_causes.status }} {{show_causes.date_time.date}} {{show_causes.ans_date.date}}Not Ans
    {% if show_causes.status != 'answered' %} {% comment %}
  • {% endcomment %} {% if 'show_causes_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 'show_causes_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 %} {% endif %}
{% endif %}
{% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}