From 49c235fe35a670b96f51ba322af122354714243c Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 21 Feb 2024 11:03:31 +0530 Subject: [PATCH] [ADD] ATTENDANCE: Empty message for filteration in late come early out attendance --- .../late_come_early_out/report_list.html | 305 ++++++++++-------- 1 file changed, 163 insertions(+), 142 deletions(-) diff --git a/attendance/templates/attendance/late_come_early_out/report_list.html b/attendance/templates/attendance/late_come_early_out/report_list.html index 31b8d5478..a9ce862e1 100644 --- a/attendance/templates/attendance/late_come_early_out/report_list.html +++ b/attendance/templates/attendance/late_come_early_out/report_list.html @@ -1,156 +1,177 @@ -{% load i18n %} +{% load i18n %}{% load static %} {% include 'filter_tags.html' %} {% load basefilters %} -
-
-
- -
-
    -
+{% if data %} +
+
+
+ +
+
    +
+
-
-
-
-
-
-
-
-
- -
-
-
{% trans "Employee" %}
-
{% trans "Type" %}
-
{% trans "Attendance Date" %}
-
{% trans "Check-In" %}
-
{% trans "In Date" %}
-
{% trans "Check-Out" %}
-
{% trans "Out Date" %}
-
{% trans "Min Hour" %}
-
{% trans "At Work" %}
-
{% trans "Actions" %}
-
{% trans "Penalties" %}
- {% comment %}
{% endcomment %} -
-
-
- {% for late_in_early_out in data %} -
-
-
- -
-
-
-
-
- +
+
+
+
+
+
+
+
- {{late_in_early_out.employee_id}}
-
-
- {% if late_in_early_out.type == 'late_come' %} - {% trans "Late Come" %} - {% else %} - {% trans "Early Out" %} - {% endif %} -
-
{{late_in_early_out.attendance_id.attendance_date}}
-
{{late_in_early_out.attendance_id.attendance_clock_in}}
-
{{late_in_early_out.attendance_id.attendance_clock_in_date}}
-
{{late_in_early_out.attendance_id.attendance_clock_out}}
-
{{laXte_in_early_out.attendance_id.attendance_clock_out_date}}
-
{{late_in_early_out.attendance_id.minimum_hour}}
-
{{late_in_early_out.attendance_id.attendance_worked_hour}}
-
-
- {% if request.user|is_reportingmanager or perms.attendance.chanage_penaltyaccount %} - - {% endif %} - {% if perms.attendance.delete_attendancelatecomeearlyout %} -
- {% csrf_token %} - -
- {% endif %} -
-
-
- {% if late_in_early_out.get_penalties_count %} -
Penalties :{{late_in_early_out.get_penalties_count}}
- {% endif %} +
{% trans "Employee" %}
+
{% trans "Type" %}
+
{% trans "Attendance Date" %}
+
{% trans "Check-In" %}
+
{% trans "In Date" %}
+
{% trans "Check-Out" %}
+
{% trans "Out Date" %}
+
{% trans "Min Hour" %}
+
{% trans "At Work" %}
+
{% trans "Penalties" %}
+
{% trans "Actions" %}
+ {% comment %}
{% endcomment %}
- {% endfor %} +
+ {% for late_in_early_out in data %} +
+
+
+ +
+
+
+
+
+ +
+ {{late_in_early_out.employee_id}} +
+
+
+ {% if late_in_early_out.type == 'late_come' %} + {% trans "Late Come" %} + {% else %} + {% trans "Early Out" %} + {% endif %} +
+
{{late_in_early_out.attendance_id.attendance_date}}
+
{{late_in_early_out.attendance_id.attendance_clock_in}}
+
{{late_in_early_out.attendance_id.attendance_clock_in_date}}
+
{{late_in_early_out.attendance_id.attendance_clock_out}}
+
{{laXte_in_early_out.attendance_id.attendance_clock_out_date}}
+
{{late_in_early_out.attendance_id.minimum_hour}}
+
{{late_in_early_out.attendance_id.attendance_worked_hour}}
+
+ {% if late_in_early_out.get_penalties_count %} +
Penalties :{{late_in_early_out.get_penalties_count}}
+ {% endif %} +
+
+
+ {% if request.user|is_reportingmanager or perms.attendance.chanage_penaltyaccount %} + + {% endif %} + {% if perms.attendance.delete_attendancelatecomeearlyout %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+ +
+ {% endfor %} +
-
-`
-
+ `
+
-
- + + {% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}. + - {% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}. - - -
+ +
+{% else %} + +
+ +
+ {% trans "No search result found!" %} +
+
+ +{% endif %} \ No newline at end of file