@@ -215,7 +217,7 @@ table.dataTable thead th {
$('#scroll-horizontal-datatable').DataTable({
scrollX: true,
- dom: "<'row'<'col-sm-2'f><'col-sm-10 text-right'B>>" +
+ dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [
diff --git a/app/Views/client_deposit_list.php b/app/Views/client_deposit_list.php
index c8be27ae..a86ffa11 100755
--- a/app/Views/client_deposit_list.php
+++ b/app/Views/client_deposit_list.php
@@ -103,9 +103,9 @@ $(document).ready(function() {
_INPUT_
+ style="position:absolute; right:11px; top:50%; transform:translateY(-53%); color:#666;">
+ style="position:absolute; right:11px; top:50%; transform:translateY(-53%); color:#666; display:none;">
`,
searchPlaceholder: "Search",
emptyTable: 'No Data found
'
diff --git a/app/Views/client_list.php b/app/Views/client_list.php
index 1a2f21f4..473d75fe 100755
--- a/app/Views/client_list.php
+++ b/app/Views/client_list.php
@@ -344,9 +344,9 @@ $(document).ready(function()
_INPUT_
+ style="position:absolute; right:11px; top:50%; transform:translateY(-53%); color:#666;">
+ style="position:absolute; right:11px; top:50%; transform:translateY(-53%); color:#666; display:none;">
`,
searchPlaceholder: "Search",
emptyTable: 'No Data found
'
diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php
index cb197be9..a64e3fc3 100755
--- a/app/Views/client_policy.php
+++ b/app/Views/client_policy.php
@@ -560,6 +560,20 @@ input:checked + .slider_blue::before {
searching: true,
autoWidth: false,
responsive: true,
+ language: {
+ search: `
+
+ _INPUT_
+
+
+
+
+ `,
+ searchPlaceholder: "Search",
+ emptyTable: 'No Data found
'
+ },
});
@@ -2543,6 +2557,20 @@ $(document).ready(function () {
searching: true,
autoWidth: false,
responsive: true,
+ // language: {
+ // search: `
+ //
+ // _INPUT_
+ //
+
+ //
+ //
+ // `,
+ // searchPlaceholder: "Search",
+ // emptyTable: 'No Data found
'
+ // },
});
diff --git a/app/Views/dms_search.php b/app/Views/dms_search.php
index 6bdd968a..1808ab8b 100644
--- a/app/Views/dms_search.php
+++ b/app/Views/dms_search.php
@@ -173,7 +173,7 @@
if (ticketsTable.length) {
ticketsTable.DataTable({
scrollX: true,
- dom: "<'row'<'col-sm-2'f><'col-sm-10 text-right'B>>" +
+ dom: "<'row'<'col-12 d-flex justify-content-between align-items-center'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [{
@@ -197,6 +197,20 @@
}],
paging: true,
pageLength: 10,
+ language: {
+ search: `
+
+ _INPUT_
+
+
+
+
+ `,
+ searchPlaceholder: "Search",
+ emptyTable: 'No Data found
'
+ },
order: [
[0, 'desc']
]
diff --git a/app/Views/hr_activity_history.php b/app/Views/hr_activity_history.php
index 8f52d592..f069c886 100644
--- a/app/Views/hr_activity_history.php
+++ b/app/Views/hr_activity_history.php
@@ -102,8 +102,18 @@ $(document).ready(function () {
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
language: {
- search: "_INPUT_",
- searchPlaceholder: "Search..."
+ search: `
+
+ _INPUT_
+
+
+
+
+ `,
+ searchPlaceholder: "Search",
+ emptyTable: 'No Data found
'
},
paging: true,
pageLength: 10,
diff --git a/app/Views/insurer_statement_list.php b/app/Views/insurer_statement_list.php
index 197d19ed..b0c05935 100644
--- a/app/Views/insurer_statement_list.php
+++ b/app/Views/insurer_statement_list.php
@@ -164,6 +164,15 @@
margin-left: 5px;
border-radius: 6px;
}
+ th.no-sort {
+ pointer-events: none; /* disable click */
+ }
+
+ th.no-sort:before,
+ th.no-sort:after {
+ display: none !important; /* hide DataTables sorting arrows */
+ }
+
@@ -205,11 +214,12 @@
-
+
+
- |
+ |
Insurer
|
@@ -1734,9 +1744,24 @@
"order": [], // Disable initial sorting if needed
"pageLength": 10,
// "dom": '<"top"lf>rt<"bottom"ip><"clear">', // This places length and filter controls at top
- "language": {
- "lengthMenu": "Show _MENU_ entries",
- "search": "Search:"
+ // "language": {
+ // "lengthMenu": "Show _MENU_ entries",
+ // "search": "Search:"
+ // }
+ language: {
+ lengthMenu: "Show _MENU_ entries",
+ search: `
+
+ _INPUT_
+
+
+
+
+ `,
+ searchPlaceholder: "Search",
+ emptyTable: 'No Data found
'
}
});
diff --git a/app/Views/policy_transaction_endorsement_list.php b/app/Views/policy_transaction_endorsement_list.php
index 59963f43..49c3a18b 100644
--- a/app/Views/policy_transaction_endorsement_list.php
+++ b/app/Views/policy_transaction_endorsement_list.php
@@ -489,7 +489,8 @@ table.dataTable thead th {
if (ticketsTable.length) {
ticketsTable.DataTable({
scrollX: true,
- dom: "<'row'<'col-sm-1'f><'col-sm-11 text-right'B>>" + // Filter left, buttons right
+ // dom: "<'row'<'col-sm-1'f><'col-sm-11 text-right'B>>" + // Filter left, buttons right
+ dom: "<'row'<'col-12 d-flex justify-content-between'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
buttons: [
diff --git a/app/Views/policy_transaction_inception_list.php b/app/Views/policy_transaction_inception_list.php
index 37640c11..6566b389 100644
--- a/app/Views/policy_transaction_inception_list.php
+++ b/app/Views/policy_transaction_inception_list.php
@@ -561,7 +561,8 @@ $(document).ready(function() {
if (ticketsTable.length) {
ticketsTable.DataTable({
scrollX: true,
- dom: "<'row'<'col-sm-1'f><'col-sm-11 text-right'B>>" + // Filter left, buttons right
+ // dom: "<'row'<'col-12'f><'col-sm-11 text-right'B>>" + // Filter left, buttons right
+ dom: "<'row'<'col-12 d-flex justify-content-between'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
buttons: [
diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php
index 63c64862..56134fa3 100644
--- a/app/Views/thz_list.php
+++ b/app/Views/thz_list.php
@@ -43,7 +43,7 @@ table.dataTable tbody td {
-
+
@@ -315,7 +315,7 @@ table.dataTable tbody td {
// Datatable document ready
$(document).ready(function() {
- var ticketsTable = $('#tickets-table');
+ var ticketsTable = $('#thz-table');
if (ticketsTable.length) {
ticketsTable.DataTable({
@@ -349,7 +349,7 @@ table.dataTable tbody td {
orthogonal: 'sort'
},
className: 'app-btn-primary ',
- title: 'Tickets'
+ title: 'Tickets',
sheetName: 'Tickets',
}
]
@@ -374,6 +374,12 @@ table.dataTable tbody td {
} else {
console.error("Table not found.");
}
+
+ $(document).on('click', '.datatable-clear-icon', function () {
+ const input = $(this).closest('.datatable-search-wrapper').find('input');
+ input.val('').trigger('input');
+ $('#thz-table').DataTable().search('').draw();
+ });
});
diff --git a/app/Views/vehicle_master_list.php b/app/Views/vehicle_master_list.php
index 2e54f852..b101c09c 100644
--- a/app/Views/vehicle_master_list.php
+++ b/app/Views/vehicle_master_list.php
@@ -15,6 +15,7 @@ table.dataTable tbody td {
.col-12 {
max-width: 98% !important;
}
+.column-header {margin-right: 10px;}
.readonly-select {
pointer-events: none;
@@ -74,14 +75,14 @@ table.dataTable tbody td {