FIX_Lead Noneb R missing and Client toaster due H&F
This commit is contained in:
parent
2f4b1347c7
commit
0ea12fb177
@ -1015,10 +1015,9 @@ class ClientController extends AdminController
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
'short_name' => [
|
'short_name' => [
|
||||||
'rules' => 'required|alpha',
|
'rules' => 'required',
|
||||||
'errors' => [
|
'errors' => [
|
||||||
'required' => 'Client Short Name is required',
|
'required' => 'Client Short Name is required',
|
||||||
'alpha' => 'Client Short Name can only contain alphabets.',
|
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'pan' => [
|
'pan' => [
|
||||||
|
|||||||
@ -437,7 +437,7 @@ class LeadsController extends BaseController
|
|||||||
];
|
];
|
||||||
$request_data = $this->request->getPost();
|
$request_data = $this->request->getPost();
|
||||||
$data = sanitizeInputArrayAdvanced($request_data);
|
$data = sanitizeInputArrayAdvanced($request_data);
|
||||||
if($data['lead_form_type'] == 2){
|
if (isset($data['lead_form_type']) && (int)$data['lead_form_type'] === 2) {
|
||||||
$rules['client_type'] = [
|
$rules['client_type'] = [
|
||||||
'rules' => 'required',
|
'rules' => 'required',
|
||||||
'errors' => ['required' => 'Client Type is required']
|
'errors' => ['required' => 'Client Type is required']
|
||||||
|
|||||||
@ -2156,10 +2156,9 @@
|
|||||||
$('.btnDiv').show();
|
$('.btnDiv').show();
|
||||||
$('.claim-row').hide();
|
$('.claim-row').hide();
|
||||||
|
|
||||||
|
$('.emp_title_text').text('No of Employees')
|
||||||
$('.emp_title').text('No of Employees')
|
$('.depnd_title_text').text('No of Dependents')
|
||||||
$('.depnd_title').text('No of Dependents')
|
$('.total_title_text').text('Total Lives')
|
||||||
$('.total_title').text('Total Lives')
|
|
||||||
|
|
||||||
$('.renewalFields').find('select, input').removeAttr('required');
|
$('.renewalFields').find('select, input').removeAttr('required');
|
||||||
$('.renewalFields').hide();
|
$('.renewalFields').hide();
|
||||||
@ -2193,9 +2192,9 @@
|
|||||||
$('.btnDiv').hide();
|
$('.btnDiv').hide();
|
||||||
$('.claim-row').show();
|
$('.claim-row').show();
|
||||||
|
|
||||||
$('.emp_title').text('No of Employees at Inception')
|
$('.emp_title_text').text('No of Employees at Inception')
|
||||||
$('.depnd_title').text(' No of Dependents at Inception')
|
$('.depnd_title_text').text(' No of Dependents at Inception')
|
||||||
$('.total_title').text('Total Lives at Inception')
|
$('.total_title_text').text('Total Lives at Inception')
|
||||||
|
|
||||||
$('.freshFields').find('select, input').removeAttr('required');
|
$('.freshFields').find('select, input').removeAttr('required');
|
||||||
$('.freshFields').hide();
|
$('.freshFields').hide();
|
||||||
|
|||||||
@ -738,9 +738,9 @@
|
|||||||
$('.claim-row').hide();
|
$('.claim-row').hide();
|
||||||
|
|
||||||
|
|
||||||
$('.emp_title').text('No of Employees')
|
$('.emp_title_text').text('No of Employees')
|
||||||
$('.depnd_title').text('No of Dependents')
|
$('.depnd_title_text').text('No of Dependents')
|
||||||
$('.total_title').text('Total Lives')
|
$('.total_title_text').text('Total Lives')
|
||||||
|
|
||||||
$('.renewalFields').find('select, input').removeAttr('required');
|
$('.renewalFields').find('select, input').removeAttr('required');
|
||||||
$('.renewalFields').hide();
|
$('.renewalFields').hide();
|
||||||
@ -775,9 +775,9 @@
|
|||||||
$('.btnDiv').hide();
|
$('.btnDiv').hide();
|
||||||
$('.claim-row').show();
|
$('.claim-row').show();
|
||||||
|
|
||||||
$('.emp_title').text('No of Employees at Inception')
|
$('.emp_title_text').text('No of Employees at Inception')
|
||||||
$('.depnd_title').text(' No of Dependents at Inception')
|
$('.depnd_title_text').text(' No of Dependents at Inception')
|
||||||
$('.total_title').text('Total Lives at Inception')
|
$('.total_title_text').text('Total Lives at Inception')
|
||||||
|
|
||||||
$('.freshFields').find('select, input').removeAttr('required');
|
$('.freshFields').find('select, input').removeAttr('required');
|
||||||
$('.freshFields').hide();
|
$('.freshFields').hide();
|
||||||
@ -812,7 +812,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var allContacts = "";
|
var allContacts = "";
|
||||||
function getBranchData(input,inputType) {
|
function getBranchData(input,inputType) {
|
||||||
|
|||||||
@ -131,22 +131,28 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="incept_emp_count" class="emp_title"> No of Employees at Inception <span
|
<label for="incept_emp_count" class="emp_title">
|
||||||
class="text-danger"></span></label>
|
<span class="emp_title_text"> No of Employees at Inception </span>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
|
</label>
|
||||||
<input value="<?= isset($lead_edit_data['incept_emp_count']) ? $lead_edit_data['incept_emp_count'] : '' ?>" type="text" class="form-control" id="incept_emp_count" name="incept_emp_count[]"
|
<input value="<?= isset($lead_edit_data['incept_emp_count']) ? $lead_edit_data['incept_emp_count'] : '' ?>" type="text" class="form-control" id="incept_emp_count" name="incept_emp_count[]"
|
||||||
placeholder="Enter Lives" required oninput="calculateTotalLives(this)">
|
placeholder="Enter Lives" required oninput="calculateTotalLives(this)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="incept_dept_count" class="depnd_title"> No of Dependents at Inception <span
|
<label for="incept_dept_count" class="depnd_title">
|
||||||
class="text-danger"></span></label>
|
<span class="depnd_title_text"> No of Dependents at Inception </span>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
|
</label>
|
||||||
<input value="<?= isset($lead_edit_data['incept_dept_count']) ? $lead_edit_data['incept_dept_count'] : '' ?>" type="text" class="form-control" id="incept_dept_count" name="incept_dept_count[]"
|
<input value="<?= isset($lead_edit_data['incept_dept_count']) ? $lead_edit_data['incept_dept_count'] : '' ?>" type="text" class="form-control" id="incept_dept_count" name="incept_dept_count[]"
|
||||||
placeholder="Enter Lives" required oninput="calculateTotalLives(this)">
|
placeholder="Enter Lives" required oninput="calculateTotalLives(this)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="incept_no_of_lives" class="total_title"> Total Lives at Inception <span
|
<label for="incept_no_of_lives" class="total_title">
|
||||||
class="text-danger"></span></label>
|
<span class="total_title_text">Total Lives at Inception</span>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
|
</label>
|
||||||
<input value="<?= isset($lead_edit_data['incept_no_of_lives']) ? $lead_edit_data['incept_no_of_lives'] : '' ?>" type="text" class="form-control" id="incept_no_of_lives" name="incept_no_of_lives[]"
|
<input value="<?= isset($lead_edit_data['incept_no_of_lives']) ? $lead_edit_data['incept_no_of_lives'] : '' ?>" type="text" class="form-control" id="incept_no_of_lives" name="incept_no_of_lives[]"
|
||||||
placeholder="Enter Lives" required>
|
placeholder="Enter Lives" required>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -3,12 +3,16 @@
|
|||||||
<div class="form-row" >
|
<div class="form-row" >
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="incept_emp_count" class="emp_title"> No of Employees at Inception <span class="text-danger">*</span></label>
|
<label for="incept_emp_count" class="emp_title">
|
||||||
|
<span class="emp_title_text"> No of Employees at Inception </span>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
|
</label>
|
||||||
<input value="<?= isset($lead_edit_data['incept_emp_count']) ? $lead_edit_data['incept_emp_count'] : '' ?>" type="text" class="form-control" id="incept_emp_count" name="incept_emp_count[]" placeholder="Enter Lives" required>
|
<input value="<?= isset($lead_edit_data['incept_emp_count']) ? $lead_edit_data['incept_emp_count'] : '' ?>" type="text" class="form-control" id="incept_emp_count" name="incept_emp_count[]" placeholder="Enter Lives" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="total_lives_at_incept" class="total_title"> Total Lives at Inception <span class="text-danger"></span></label>
|
<label for="total_lives_at_incept" class="total_title">
|
||||||
|
<span class="total_title_text"> Total Lives at Inception </span> <span class="text-danger"></span></label>
|
||||||
<input value="<?= isset($lead_edit_data['total_lives_at_incept']) ? $lead_edit_data['total_lives_at_incept'] : '' ?>" type="text" class="form-control" id="total_lives_at_incept" name="total_lives_at_incept[]" placeholder="Enter Lives" disabled>
|
<input value="<?= isset($lead_edit_data['total_lives_at_incept']) ? $lead_edit_data['total_lives_at_incept'] : '' ?>" type="text" class="form-control" id="total_lives_at_incept" name="total_lives_at_incept[]" placeholder="Enter Lives" disabled>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user