diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index 174bad00..178b5599 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -207,6 +207,8 @@ class LeadsController extends BaseController private function prepareLeadData() { $data = $this->request->getPost(); + $data['client_type'] = 1; + $data['pan'] = ""; if ($data['lead_type'] != 1) { $client_data = $this->clientModel->where('id', $data['client_id'])->where('is_active', 1)->first(); diff --git a/app/Views/leads_form.php b/app/Views/leads_form.php index 76b6ef5e..f6370884 100644 --- a/app/Views/leads_form.php +++ b/app/Views/leads_form.php @@ -170,7 +170,7 @@ -
+
@@ -210,7 +210,7 @@ placeholder="Enter Client Short Name" onkeyup="validateInput(this, 'clients', 'short_name')" required>
- -
- +
+ -
-
+
@@ -302,9 +301,9 @@
- +
@@ -771,7 +770,8 @@ if (value.name && value.email) { - let display_value = `${value.name} - ${value.email} - ${value.mobile}`; + // let display_value = `${value.name} - ${value.email} - ${value.mobile}`; + let display_value = value.name; $('#contact_person_summary').append($('
@@ -293,18 +376,27 @@ document.addEventListener("DOMContentLoaded", function () { if (ticketsTable.length) { ticketsTable.DataTable({ - // scrollX: true, - dom: "<'row'<'col-sm-6'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right + scrollX: true, + dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector - buttons: [{ - extend: 'csv', - text: 'CSV', - title: 'Policy-Tranction-Inception-List', - exportOptions: { - columns: ':not(:last-child)' - }, - }, ], + buttons: [ + { + extend: 'csv', + text: 'CSV', + title: 'Policy-Tranction-Inception-List', + exportOptions: { + columns: ':not(:last-child)' + }, + }, + { + text: 'Add', + className: 'buttons-html5 addbtnStyle', + action: function (e, dt, node, config) { + openLeadTypeAskModal(); + } + } + ], language: { search: "_INPUT_", searchPlaceholder: "Search..." @@ -327,7 +419,8 @@ document.addEventListener("DOMContentLoaded", function () { console.log('function called') - let Lead_type = $('#openLeadTypeAskModal').val() + // let Lead_type = $('#openLeadTypeAskModal').val() + let Lead_type = $('input[name="lead_form_type"]:checked').val(); console.log('Lead_type ', Lead_type) let url = '' + Lead_type console.log('url ', url) @@ -346,3 +439,32 @@ document.addEventListener("DOMContentLoaded", function () { } + + diff --git a/app/Views/leads_non_eb.php b/app/Views/leads_non_eb.php index 0dc44253..04e0a15d 100644 --- a/app/Views/leads_non_eb.php +++ b/app/Views/leads_non_eb.php @@ -363,7 +363,7 @@
- +
diff --git a/app/Views/view_rfq.php b/app/Views/view_rfq.php index c6f1d3b4..83daa218 100644 --- a/app/Views/view_rfq.php +++ b/app/Views/view_rfq.php @@ -42,13 +42,13 @@ #rfqTable th:nth-child(-n+3), #rfqTable td:nth-child(-n+3) { - border: 3px solid snow; + border: 2px solid #007bff; } #rfqTable th:nth-child(n+4), #rfqTable td:nth-child(n+4) { border: 2px solid #007bff; - /* outline: none; */ + outline: none; } #rfqTable thead th { @@ -59,6 +59,7 @@ #rfqTable_for_calc th, #rfqTable_for_calc td { border: 2px solid #007bff; + } /* Remove border from first 2 and last column */ @@ -240,11 +241,26 @@ border: none !important; } + .save-indicator { + position: absolute; + top: 10px; + right: 10px; + background: #28a745; + color: white; + padding: 2px 8px; + border-radius: 10px; + font-size: 11px; + opacity: 0; + transition: opacity 0.3s; + } + + .save-indicator.show { + opacity: 1; + } + -
-
@@ -277,13 +293,14 @@ +
Saved
- - - + + + - + - - - + + + - + @@ -446,7 +463,7 @@
- + - +
- +
@@ -684,6 +701,7 @@ var multi_file_data = []; var totalSumAssuredData = []; var snoColumnWidth = "72px"; + var borderPixel = "2px solid #007bff"; const editorConfig = { buttons: [ @@ -851,15 +869,15 @@ }); $('#proposals').select2({ - placeholder: 'Select To proposal', + placeholder: 'Select proposal', }); $('#placement_to').select2({ - placeholder: 'Select To Mail', + placeholder: 'Select TO Mail', }); $('#to').select2({ - placeholder: 'Select To Mail', + placeholder: 'Select TO Mail', }); $("textarea.select2-search__field").attr('rows', '1'); @@ -1410,7 +1428,6 @@ function addSuggestionsToTable() { actionCell.classList.add('action'); actionCell.innerHTML = ' QCR Client '; - suggestionKeys.push(key); } } @@ -3979,18 +3996,18 @@ function ajaxRequest(formData) { }); $('#to').select2({ - placeholder: 'Select To Mail', + placeholder: 'Select TO Mail', }); $('#cc').val('').select2({ - placeholder : 'select CC Mail' + placeholder : 'Select CC Mail' }); // $('#subject').val(''); $('#proposals').val(''); $('#placement_to').val('').select2({ - placeholder : 'select To Mail' + placeholder : 'Select TO Mail' }); $('#placement_cc').val('').select2({ - placeholder : 'select CC Mail' + placeholder : 'Select CC Mail' }); // $('#placement_subject').val(''); @@ -4040,7 +4057,7 @@ function appendInsurerContact(data) { // Clear existing options and CC entries $('#placement_to').empty().append($('
S.No.ParticularsS.No.Particulars Proposal Coverage 1 @@ -301,14 +318,14 @@ ActionAction
- - - - Quote Asked - -