From 67521d45cffed98536a4e3c069e55e95d01d3f75 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Fri, 17 Oct 2025 15:26:50 +0530 Subject: [PATCH] CHANGE_live_ui_fix_in_qcr - VADIVEL J 2025-10-17 --- app/Views/client_policy.php | 50 ++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 7adce13..fe028ca 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -12,7 +12,7 @@ margin-right: 40px; } - #notification_slider .switch-label input { +#notification_slider .switch-label input { opacity: 0; width: 0; height: 0; @@ -576,6 +576,8 @@ $('.btnAdd').click(function() { fetchClientBranch() + $('#notification_slider').hide(); + $('#policy_form')[0].reset(); $('#add_form').show(); $('#table_list').hide(); @@ -609,6 +611,7 @@ $('.btnAdd').click(function() { $('.btnBack').click(function() { + $('#notification_slider').show(); $('#policy_form')[0].reset(); $('#add_form').hide(); $('#table_list').show(); @@ -633,6 +636,8 @@ $("#policy_form").submit(function(event) { event.preventDefault(); + $('#notification_slider').show(); + policy_PrimaryKey = $('#client_id_policy').val(); policy_client = $('#policy_PrimaryKey').val(); @@ -774,6 +779,8 @@ $("#policy_form").submit(function(event) { auto_si_menu = `Auto SI`; } + if(checkDateStatus(item.policy_end_date) != 'Expired'){ + policyTable += ` @@ -794,20 +801,24 @@ $("#policy_form").submit(function(event) { Rack Rate ${auto_si_menu}`; - // Conditionally render the delete option based on the role - if (role != 3 && role != 4) { - policyTable += - ` - Delete`; - } + // Conditionally render the delete option based on the role + if (role != 3 && role != 4) { + policyTable += + ` + Delete`; + } - policyTable += ` - - - - - `; - }); + policyTable += ` + + + + + `; + + + } + + }); $('#policy_table').append(policyTable); // console.log(policyTable); @@ -833,7 +844,11 @@ $("#policy_form").submit(function(event) { //console.log('Unknown error occurred', 'Warning'); } }, 1000); + }, + complete:function(){ + $('notification_slider').show(); } + }); }); @@ -897,6 +912,9 @@ $('body').on('click', '.btnPolicyEdit', function() { var policy_form_action = ''; var policy_id = $(this).attr('data-id'); + + $('#notification_slider').hide(); + $('.loader').fadeIn(); $('.loader-mask').fadeIn(); @@ -1120,6 +1138,10 @@ $('body').on('click', '.btnPolicyEdit', function() { $('.loader-mask').delay(350).fadeOut('slow'); //console.log('Something Wrong!', 'warning'); }, 1000); + }, + complete:function() { + $('#notification_slider').hide(); + console.log('complete call'); } }); });