From 300499b6de54b5301e5acabc8cc85bc4a4fc1fd9 Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 22 Sep 2025 10:11:03 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Updated hour account and resignation tab into using generic list table --- attendance/models.py | 2 +- .../templates/cbv/hour_account/hour_account_main.html | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/attendance/models.py b/attendance/models.py index 29374d6cf..f1eb4802f 100644 --- a/attendance/models.py +++ b/attendance/models.py @@ -289,7 +289,7 @@ class Attendance(HorillaModel): default=False, verbose_name=_("Is validate request approved") ) request_description = models.TextField( - null=True, max_length=255, verbose_name=_("Request Description") + null=True, verbose_name=_("Request Description") ) request_type = models.CharField( max_length=18, null=True, choices=status, default="update_request" diff --git a/attendance/templates/cbv/hour_account/hour_account_main.html b/attendance/templates/cbv/hour_account/hour_account_main.html index 3c726089b..a8d6c8878 100644 --- a/attendance/templates/cbv/hour_account/hour_account_main.html +++ b/attendance/templates/cbv/hour_account/hour_account_main.html @@ -1,8 +1,9 @@ -
- {% include "generic/horilla_list.html" %} +
+ {% include "generic/horilla_list_table.html" %}
+ {% if request.GET.deleted %} - + {% endif %}