{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% load custom_tags %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if request.user.is_superuser == True %}
{% csrf_token %}
Today's Absent Report
{{form.mother_organization|as_crispy_field}}
{{form.sister_organization|as_crispy_field}}
{{form.branch|as_crispy_field}}
{{form.department|as_crispy_field}}
{{form.designation|as_crispy_field}}
{{form.work_place|as_crispy_field}}
{% endif %} {% if request.user.user_type == 'Mother_Organization_admin' %}
{% csrf_token %}
Today's Absent Report
{{form.sister_organization|as_crispy_field}}
{{form.branch|as_crispy_field}}
{{form.department|as_crispy_field}}
{{form.designation|as_crispy_field}}
{{form.work_place|as_crispy_field}}
{% endif %} {% if request.user.user_type == 'Sister_Organization_admin' %}
{% csrf_token %}
Today's Absent Report
{{form.branch|as_crispy_field}}
{{form.department|as_crispy_field}}
{{form.designation|as_crispy_field}}
{{form.work_place|as_crispy_field}}
{% endif %} {% if request.user.user_type == 'Branch' %}
{% csrf_token %}
Today's Absent Report
{{form.department|as_crispy_field}}
{{form.designation|as_crispy_field}}
{{form.work_place|as_crispy_field}}
{% endif %} {% if department_temp %}

{{ company_info.name_en }}

{{ company_info.address_details }}

{{report_month}} {{report_year}}{{eid_bonus_list.created_date}}

Today Absent Report {% if department %}(Department : {{department}}) {% endif %} {% if designation %} (Designation : {{designation}}) {% endif %} {% if from_date %} {{from_date}}  -  {{to_date}} {% endif %}

{% for department_list in department_temp %} {% if department_list.0.0 %} {% endif %} {% for employee in department_list %} {% if forloop.last %} {% if employee != 0 %} {% endif %} {% else %} {% if employee.9 %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
ID Employee Name join Date Designation Shift T.Absent Remarks
{{department_list.0.0}} {% if department_list.0.1 %} Line:{{department_list.0.1.working_place}} {% else %} Line: {% endif %}
Total Employee:  {{department_list.0.9}}    Total Present:  {{forloop.counter|subtract:total_present}} sub Total: {{employee}}
{{ employee.2 }} {{ employee.3 }} {{ employee.4}} {{ employee.6}} {{ employee.7}} {{ employee.8}} {{ employee.9}}
{% endif %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}