FIX_Code Revert (After the user changes the status and clicks Submit, the collection of next-next status fields is displayed. These fields do not belong to the selected status, which confuses the user)
This commit is contained in:
parent
4d9776ec3c
commit
8e1ec7f150
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
.dataTables_length label {height: 21px !important;}
|
.dataTables_length label {height: 21px !important;}
|
||||||
|
|
||||||
|
.column-header { margin-right: 10px; /* Adjust this value as needed */ }
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -22,18 +24,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
<table data-custom-table-css="table" class="table mb-0 nowrap w-100 table-centered" cellspacing="0" id="tickets-table">
|
<table data-custom-table-css="table" class="table mb-0 nowrap w-100 table-centered" cellspacing="0" id="tickets-table">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="font-weight-medium">S.No </th>
|
<th class="font-weight-medium"><div class="column-header">S.No</div></th>
|
||||||
<th class="font-weight-medium">File name </th>
|
<th class="font-weight-medium"><div class="column-header">File name</div></th>
|
||||||
<th class="font-weight-medium">Client </th>
|
<th class="font-weight-medium"><div class="column-header">Client</div></th>
|
||||||
<th class="font-weight-medium">Client Branch </th>
|
<th class="font-weight-medium"><div class="column-header">Client Branch</div></th>
|
||||||
<th class="font-weight-medium">Policy </th>
|
<th class="font-weight-medium"><div class="column-header">Policy</div></th>
|
||||||
<th class="font-weight-medium">Event </th>
|
<th class="font-weight-medium"><div class="column-header">Event</div></th>
|
||||||
<th class="font-weight-medium">User/Time </th>
|
<th class="font-weight-medium"><div class="column-header">User/Time</div></th>
|
||||||
<th class="font-weight-medium">Status </th>
|
<th class="font-weight-medium"><div class="column-header">Status</div></th>
|
||||||
<th class="font-weight-medium">Action </th>
|
<th class="font-weight-medium"><div class="column-header">Action</div></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@ -115,6 +118,7 @@
|
|||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- end col -->
|
</div><!-- end col -->
|
||||||
|
|||||||
@ -428,7 +428,7 @@
|
|||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="attachment_tbody">
|
<tbody id="attachment_tbody_common">
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1445,7 +1445,10 @@
|
|||||||
if (template_name == 'member_welcome_mail') {
|
if (template_name == 'member_welcome_mail') {
|
||||||
container = document.getElementById('attachment_tbody');
|
container = document.getElementById('attachment_tbody');
|
||||||
}
|
}
|
||||||
else {
|
else if (template_name == 'member_common_mail') {
|
||||||
|
container = document.getElementById('attachment_tbody_common');
|
||||||
|
}
|
||||||
|
else {
|
||||||
container = document.getElementById('attachment_tbody_ecard');
|
container = document.getElementById('attachment_tbody_ecard');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1512,7 +1515,11 @@
|
|||||||
function removeHTMLInput(element) {
|
function removeHTMLInput(element) {
|
||||||
if (template_name == 'member_welcome_mail') {
|
if (template_name == 'member_welcome_mail') {
|
||||||
const container = document.getElementById('attachment_tbody');
|
const container = document.getElementById('attachment_tbody');
|
||||||
} else {
|
}
|
||||||
|
else if (template_name == 'member_common_mail') {
|
||||||
|
container = document.getElementById('attachment_tbody_common');
|
||||||
|
}
|
||||||
|
else {
|
||||||
const container = document.getElementById('attachment_tbody_ecard');
|
const container = document.getElementById('attachment_tbody_ecard');
|
||||||
}
|
}
|
||||||
const rows = container.querySelectorAll('.dynamic-form-row');
|
const rows = container.querySelectorAll('.dynamic-form-row');
|
||||||
|
|||||||
@ -566,11 +566,11 @@
|
|||||||
allowInput: false
|
allowInput: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
updateClaimStatusDisplay("<?= isset($ticket_data['claim_status_id']) ? $ticket_data['claim_status_id'] : 0 ?>")
|
||||||
var extraFields = <?= json_encode(isset($extra_fields) ? $extra_fields : []); ?>;
|
var extraFields = <?= json_encode(isset($extra_fields) ? $extra_fields : []); ?>;
|
||||||
GlobelExtraFields = extraFields;
|
GlobelExtraFields = extraFields;
|
||||||
console.log("extraFields", extraFields);
|
console.log("extraFields", extraFields);
|
||||||
claimStatusFieldChanges(extraFields);
|
claimStatusFieldChanges(extraFields);
|
||||||
updateClaimStatusDisplay("<?= isset($ticket_data['claim_status_id']) ? $ticket_data['claim_status_id'] : 0 ?>")
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
// dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right
|
// dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right
|
||||||
// "<'row'<'col-sm-12'tr>>" +
|
// "<'row'<'col-sm-12'tr>>" +
|
||||||
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
|
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
|
||||||
dom: "<'row'<'col-12 d-flex justify-content-between align-items-center'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
|
dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" +
|
||||||
"<'row'<'col-sm-12'tr>>" +
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
"<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
|
"<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
|
||||||
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
|
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user