From e864a5cd0f2dbf3d523e024d1fc9fd98aa34d979 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Mon, 20 Apr 2026 10:45:11 +0530 Subject: [PATCH 1/2] FIX_UI issues noted --- app/Views/UserList.php | 77 ++++++++++++-- app/Views/client_list.php | 2 +- app/Views/endorsement_list.php | 1 + app/Views/import_export.php | 1 + app/Views/insurer_list.php | 71 +++++++++++-- app/Views/retail_endorsement_list.php | 20 ++-- app/Views/test_members_list.php | 147 +++++++++++++++++++++----- app/Views/ticket_feedback_list.php | 90 ++++++++++------ app/Views/tpa_list.php | 75 +++++++++++-- public/assets/css/custom.css | 22 ++-- 10 files changed, 402 insertions(+), 104 deletions(-) diff --git a/app/Views/UserList.php b/app/Views/UserList.php index 0adae2ad..141b3c50 100755 --- a/app/Views/UserList.php +++ b/app/Views/UserList.php @@ -341,6 +341,62 @@ table.dataTable tbody td { +first_name ?? ''))); + $ul_col_max_len[1] = max($ul_col_max_len[1], mb_strlen((string) ($row->email ?? ''))); + $ul_col_max_len[2] = max($ul_col_max_len[2], mb_strlen((string) ($row->mobile ?? ''))); + $ul_col_max_len[3] = max($ul_col_max_len[3], mb_strlen((string) ($row->user_role ?? ''))); + $statusLabel = (($row->is_active ?? 0) == 1) ? 'Active' : 'In-Active'; + $ul_col_max_len[4] = max($ul_col_max_len[4], mb_strlen($statusLabel)); + $ul_col_max_len[5] = max($ul_col_max_len[5], 4); + } +} +$ul_col_min_px = array_fill(0, $ul_col_count, 80); +$ul_col_max_px = array_fill(0, $ul_col_count, 360); +$ul_col_min_px[0] = 72; +$ul_col_max_px[0] = 280; +$ul_col_min_px[5] = 72; +$ul_col_max_px[5] = 96; +$ul_col_width_px = nhance_dt_column_widths_px($ul_header_labels, $ul_col_max_len, $ul_col_min_px, $ul_col_max_px); +?> + + <'col-sm-9'B>>" + // "<'row'<'col-sm-12'tr>>" + // "<'row'<'col-sm-5'i><'col-sm-7'p>>", @@ -1083,8 +1139,15 @@ table.dataTable tbody td { $(this).addClass('active'); loadPartner(); }); - } - }); + }, + columnDefs: [ + + { targets: , width: 'px' }, + + ] + })); + nhanceListDataTableAfterInit(); + nhanceListDataTableBindAdjust(table); function applyBottomRowDropup() { if (!table) return; @@ -1109,12 +1172,12 @@ table.dataTable tbody td { // IMPORTANT — DataTables draw event REF: TTS table.on('draw.dt', function () { - let rowCount = $('#scroll-horizontal-datatable').DataTable().rows({ filter: 'applied' }).count(); + let rowCount = table.rows({ filter: 'applied' }).count(); if (rowCount <= 2) { - $('.dataTables_scrollBody').css('overflow', 'inherit'); + $('#user-table_wrapper .dataTables_scrollBody').css('overflow', 'inherit'); } else { - $('.dataTables_scrollBody').css('overflow', 'auto'); + $('#user-table_wrapper .dataTables_scrollBody').css('overflow', 'auto'); } }); diff --git a/app/Views/client_list.php b/app/Views/client_list.php index bf4c78eb..1934afb8 100755 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -180,7 +180,7 @@ table.dataTable thead th { $row){ ?> - + client_name; ?> ( short_name; ?> ) + id="insurer-list-table"> @@ -71,10 +119,8 @@ \ No newline at end of file + diff --git a/app/Views/tpa_list.php b/app/Views/tpa_list.php index c369c606..6f907c54 100755 --- a/app/Views/tpa_list.php +++ b/app/Views/tpa_list.php @@ -1,3 +1,23 @@ + +
@@ -50,7 +97,7 @@
-->
Name 
+ id="tpa-list-table"> @@ -87,7 +134,10 @@ \ No newline at end of file diff --git a/app/Views/frontend_content_list.php b/app/Views/frontend_content_list.php index b0b38da8..695feb65 100644 --- a/app/Views/frontend_content_list.php +++ b/app/Views/frontend_content_list.php @@ -90,7 +90,7 @@ $fec_col_width_px = nhance_dt_column_widths_px($fec_header_labels, $fec_col_max_ $row) { ?> - + diff --git a/app/Views/insurer_export_templete.php b/app/Views/insurer_export_templete.php index 73d725e1..5edcc832 100755 --- a/app/Views/insurer_export_templete.php +++ b/app/Views/insurer_export_templete.php @@ -111,7 +111,7 @@ $value ){ ?> - + diff --git a/app/Views/insurer_list.php b/app/Views/insurer_list.php index 755a514c..b0611e6b 100755 --- a/app/Views/insurer_list.php +++ b/app/Views/insurer_list.php @@ -65,6 +65,17 @@ $ins_col_width_px = nhance_dt_column_widths_px($ins_header_labels, $ins_col_max_ overflow: visible; text-overflow: clip; } +#insurer-list-table tbody td { + padding: 5px 11px !important; + font-size: 13px; + line-height: 1.25; +} +#insurer-list-table_wrapper .dataTables_scrollHead table thead th, +#insurer-list-table thead th { + padding: 5px 2.35rem 5px 11px !important; + font-size: 13px; + line-height: 1.25; +}
diff --git a/app/Views/invoice_template.php b/app/Views/invoice_template.php index 865ab921..3a61a602 100644 --- a/app/Views/invoice_template.php +++ b/app/Views/invoice_template.php @@ -359,7 +359,7 @@ body { $page_break_class = (($serial % $records_per_page) == 0 && $serial != count($policies)) ? 'page-break' : ''; ?>
- + diff --git a/app/Views/leads_list.php b/app/Views/leads_list.php index c9459190..b496dfe4 100644 --- a/app/Views/leads_list.php +++ b/app/Views/leads_list.php @@ -264,7 +264,7 @@ for ($i = 0; $i < $leads_col_count; $i++) { $row) {?> - - + - + diff --git a/app/Views/policy_transaction_endorsement_list_2.php b/app/Views/policy_transaction_endorsement_list_2.php index 8e26b2c3..38b7afb4 100644 --- a/app/Views/policy_transaction_endorsement_list_2.php +++ b/app/Views/policy_transaction_endorsement_list_2.php @@ -325,7 +325,7 @@ table.dataTable thead th { $row) { ?> - + diff --git a/app/Views/pos_list.php b/app/Views/pos_list.php index 7a872e19..d989318f 100644 --- a/app/Views/pos_list.php +++ b/app/Views/pos_list.php @@ -111,7 +111,7 @@ $pos_col_width_px = nhance_dt_column_widths_px($pos_header_labels, $pos_col_max_ $row) { ?> - + diff --git a/app/Views/rto_master_list.php b/app/Views/rto_master_list.php index 1f1b8084..e5b2b2dd 100644 --- a/app/Views/rto_master_list.php +++ b/app/Views/rto_master_list.php @@ -85,7 +85,7 @@ $rto_col_width_px = nhance_dt_column_widths_px($rto_header_labels, $rto_col_max_ $row) { ?> - + diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index e53ce222..1aa69b4c 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -166,7 +166,7 @@ beccause = dataTables_length and dataTables_paginate need in same line thats why $row){ ?> - + - + diff --git a/app/Views/vehicle_master_list.php b/app/Views/vehicle_master_list.php index b880c50e..6e29f5b8 100644 --- a/app/Views/vehicle_master_list.php +++ b/app/Views/vehicle_master_list.php @@ -60,15 +60,15 @@ $vm_col_width_px = nhance_dt_column_widths_px($vm_header_labels, $vm_col_max_len ?>
Name
+ $log): ?>
View | diff --git a/app/Views/nhance_branch_list.php b/app/Views/nhance_branch_list.php index 4addfaf9..dc0190c1 100644 --- a/app/Views/nhance_branch_list.php +++ b/app/Views/nhance_branch_list.php @@ -81,7 +81,7 @@ $nb_col_width_px = nhance_dt_column_widths_px($nb_header_labels, $nb_col_max_len $row) { ?>

diff --git a/app/Views/tpa_list.php b/app/Views/tpa_list.php index 6f907c54..8b17f04c 100755 --- a/app/Views/tpa_list.php +++ b/app/Views/tpa_list.php @@ -85,6 +85,17 @@ $tpa_col_width_px = nhance_dt_column_widths_px($tpa_header_labels, $tpa_col_max_ overflow: visible; text-overflow: clip; } +#tpa-list-table tbody td { + padding: 5px 11px !important; + font-size: 13px; + line-height: 1.25; +} +#tpa-list-table_wrapper .dataTables_scrollHead table thead th, +#tpa-list-table thead th { + padding: 5px 2.35rem 5px 11px !important; + font-size: 13px; + line-height: 1.25; +}
diff --git a/app/Views/variance_report_list.php b/app/Views/variance_report_list.php index 307c5d3d..446b0930 100644 --- a/app/Views/variance_report_list.php +++ b/app/Views/variance_report_list.php @@ -376,7 +376,7 @@ $vr_col_width_px = nhance_dt_column_widths_px($vr_header_labels, $vr_col_max_len $row){ ?>