diff --git a/app/Views/UserList.php b/app/Views/UserList.php index baa63298..ea8a21ae 100755 --- a/app/Views/UserList.php +++ b/app/Views/UserList.php @@ -377,8 +377,8 @@ table.dataTable tbody td {
- - + +
diff --git a/app/Views/cd_master_add_modal.php b/app/Views/cd_master_add_modal.php index b5d4cf66..9be62e94 100644 --- a/app/Views/cd_master_add_modal.php +++ b/app/Views/cd_master_add_modal.php @@ -1,3 +1,25 @@ + --> -
+

diff --git a/app/Views/kyc_docs.php b/app/Views/kyc_docs.php index 623087d3..8b9a703c 100755 --- a/app/Views/kyc_docs.php +++ b/app/Views/kyc_docs.php @@ -1,4 +1,4 @@ -
+
@@ -89,10 +89,10 @@
- -
diff --git a/app/Views/kyc_entity_type_basic_info.php b/app/Views/kyc_entity_type_basic_info.php index 84a58bc8..9998f144 100755 --- a/app/Views/kyc_entity_type_basic_info.php +++ b/app/Views/kyc_entity_type_basic_info.php @@ -1,7 +1,7 @@
-
+
@@ -21,7 +21,7 @@
- diff --git a/app/Views/kyc_onboarding.php b/app/Views/kyc_onboarding.php index 4e1ffd8d..d13612f1 100755 --- a/app/Views/kyc_onboarding.php +++ b/app/Views/kyc_onboarding.php @@ -34,7 +34,7 @@ body {
-
+

diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index 0008aa61..cd666884 100755 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -520,8 +520,6 @@ a.app-text-success:hover, a.app-text-success:focus { box-shadow: 0 0 0 0.15rem rgba(226, 103, 40, 0.5); } -.app-btn-border-radius{ border-radius: 10px !important; } - .app-badge-primary { color: #ffffff; background-color: #00999E; } @@ -1093,9 +1091,9 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus { } .custom-form .form-control { background-color: #F5FFFF !important; - border: 1px solid #ccc; /* optional */ + border: none !important; /* color: #000; keep text readable */ - box-shadow: none !important; + box-shadow: 0px 1px 1px 0px #00000040; } .custom-form .form-control:focus { background-color: #F5FFFF !important; @@ -1103,7 +1101,7 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus { } .custom-form .select2-container--default .select2-selection--multiple { background-color: #F5FFFF !important; - border: 1px solid #ccc; + border: none !important; } .custom-form .select2-container .select2-selection--single { background-color: #F5FFFF !important; @@ -1121,6 +1119,11 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus { margin-top:0 !important; padding-top: 0 !important; } + + .subcard{ + padding-top: 0px; + padding-left: 5px; + } diff --git a/app/Views/policy_type_basic_info.php b/app/Views/policy_type_basic_info.php index 3ef7a288..1bfb3fe3 100755 --- a/app/Views/policy_type_basic_info.php +++ b/app/Views/policy_type_basic_info.php @@ -1,7 +1,7 @@
-
+
@@ -76,7 +76,7 @@
- diff --git a/app/Views/policy_type_onboarding.php b/app/Views/policy_type_onboarding.php index c219583c..d14db3e2 100755 --- a/app/Views/policy_type_onboarding.php +++ b/app/Views/policy_type_onboarding.php @@ -42,7 +42,7 @@ body { ">
--> -
+

diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index 73e1641f..0590810a 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -281,8 +281,8 @@ table.dataTable td.wrap {

@@ -314,7 +314,7 @@ table.dataTable td.wrap {

@@ -610,7 +610,7 @@ $(document).ready(function() { buttons: [ { text: ' Create New Ticket ', - className: 'btn app-btn-primary app-btn-border-radius mr-2', + className: 'btn app-btn-primary mr-2', action: function(e, dt, node, config) { openTicket(); } @@ -618,7 +618,7 @@ $(document).ready(function() { { extend: 'collection', text: ' Export ', - className: 'btn app-btn-secondary app-btn-border-radius', + className: 'btn app-btn-secondary ', buttons: [ { extend: 'csv', diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php index 0446f52f..c7a23bb8 100644 --- a/app/Views/thz_notes.php +++ b/app/Views/thz_notes.php @@ -386,7 +386,7 @@ hr{
diff --git a/app/Views/tpa_basic_info.php b/app/Views/tpa_basic_info.php index 6294d4d2..9830c520 100755 --- a/app/Views/tpa_basic_info.php +++ b/app/Views/tpa_basic_info.php @@ -28,7 +28,7 @@ font-size: 14px; } -.delete-btn { +/* .delete-btn { background-color: #e5f7f6; color: #00999E; border: none; @@ -36,7 +36,7 @@ padding: 6px 20px; cursor: pointer; font-size: 14px; -} +} */ .helper-text { font-size: 12px; @@ -58,7 +58,7 @@
-
+
@@ -144,7 +144,7 @@
- +
@@ -177,7 +177,7 @@
- +
@@ -210,7 +210,7 @@
- +
@@ -230,7 +230,7 @@
- +
diff --git a/app/Views/tpa_branch.php b/app/Views/tpa_branch.php index 0ca3769e..00683a57 100755 --- a/app/Views/tpa_branch.php +++ b/app/Views/tpa_branch.php @@ -29,10 +29,10 @@ max-height: 80vh; } -
+
@@ -241,8 +241,8 @@
- - + +
@@ -250,13 +250,11 @@
- -
+
-
@@ -264,26 +262,30 @@
- - + +
- - + +
- - + +
- - + +
+
+ +
+
@@ -451,7 +453,7 @@ $(document).ready(function () { myModal.hide(); // $('#add_branch').hide(); // $('#branch_table').show(); - $('.btnBack').hide(); + // $('.btnBack').hide(); // $('#btnBranchAdd').show(); }, error: function (xhr, status, error) { @@ -587,75 +589,163 @@ $(document).ready(function () { -function appendContactHtml(contact = false, reset = false) { +// function appendContactHtml(contact = false, reset = false) { - console.log('appendContactHtml function called ') - contactCount++; +// console.log('appendContactHtml function called ') +// contactCount++; + +// var container = document.getElementById('container'); +// var uniqueId = Date.now().toString(); + +// var html = ` +//
+//
+//
Contact ${contactCount}
+//
+//
+//
+// +// +//
+//
+//
+//
+// +// +//
+//
+//
+//
+// +// +//
+//
+//
+//
+// +// +//
+//
+//
+// +//
+//
+// `; + +// if(reset == false){ +// console.log(reset) +// container.insertAdjacentHTML('beforeend', html); +// storeButtonId(uniqueId + '_add'); + +// if (contactCount >= 3) { +// hideStoredAddButtons(); +// } +// } + +// } + +function renumberContacts() { + var contacts = document.querySelectorAll('.contact-block'); + + contacts.forEach(function(contact, index) { + let title = contact.querySelector('.modal-subtitle'); + if (title) { + title.textContent = "Contact " + (index + 1); // auto numbering + } + }); + + contactCount = contacts.length; // keep global in sync +} + + + function appendContactHtml(contact = false, reset = false) { + console.log('appendContactHtml function called '); var container = document.getElementById('container'); var uniqueId = Date.now().toString(); var html = ` -
-
-
Contact ${contactCount}
-
-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
- - +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
`; - if(reset == false){ - console.log(reset) + if(!reset){ container.insertAdjacentHTML('beforeend', html); - storeButtonId(uniqueId + '_add'); - - if (contactCount >= 3) { - hideStoredAddButtons(); - } + renumberContacts(); // ✅ fix numbering + toggleAddButton(); } - } - + function removeContact(button) { var uniqueId = button.id.split("_")[0]; var contactSection = document.getElementById(uniqueId); if (contactSection) { contactSection.parentNode.removeChild(contactSection); - contactCount --; - - if (contactCount < 3) { - var addButton = document.querySelector('.ac'); - if (addButton) { - addButton.style.display = 'block'; - } - } + renumberContacts(); // ✅ renumber after removal + toggleAddButton(); } } +function toggleAddButton() { + var totalContacts = document.querySelectorAll('.contact-block, #contact_1_wrapper').length; + var addButton = document.querySelector('.ac'); + + if (totalContacts >= 3) { + addButton.style.display = 'none'; + } else { + addButton.style.display = 'block'; + } +} + +// function removeContact(button) { +// var uniqueId = button.id.split("_")[0]; +// var contactSection = document.getElementById(uniqueId); + +// if (contactSection) { +// contactSection.parentNode.removeChild(contactSection); +// contactCount --; + +// if (contactCount < 3) { +// var addButton = document.querySelector('.ac'); +// if (addButton) { +// addButton.style.display = 'block'; +// } +// } +// } +// } + function storeButtonId(id) { var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || []; diff --git a/app/Views/tpa_onboarding.php b/app/Views/tpa_onboarding.php index f674e048..9faf50c0 100755 --- a/app/Views/tpa_onboarding.php +++ b/app/Views/tpa_onboarding.php @@ -34,7 +34,7 @@ body {
-
+

diff --git a/app/Views/vehicle_master_list.php b/app/Views/vehicle_master_list.php index a64b0646..4456b5f1 100644 --- a/app/Views/vehicle_master_list.php +++ b/app/Views/vehicle_master_list.php @@ -218,8 +218,8 @@ table.dataTable tbody td {

- - + +