From e864a5cd0f2dbf3d523e024d1fc9fd98aa34d979 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Mon, 20 Apr 2026 10:45:11 +0530 Subject: [PATCH] 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 @@
Name