FIX_ROUTE : RV
This commit is contained in:
parent
46278b9f94
commit
6decc1abae
@ -314,6 +314,9 @@ $routes->group("/util", ["filter" => "authMVC"], function ($routes) {
|
|||||||
$routes->get("checkInvoiceStatus/(:any)", "PolicyTransactionController::checkInvoiceStatus/$1");
|
$routes->get("checkInvoiceStatus/(:any)", "PolicyTransactionController::checkInvoiceStatus/$1");
|
||||||
$routes->get("base_policy_for_policy_inception/(:any)", "PolicyTransactionController::getBasePolicy/$1");
|
$routes->get("base_policy_for_policy_inception/(:any)", "PolicyTransactionController::getBasePolicy/$1");
|
||||||
$routes->get("sentTestMail/(:any)", "NotificationController::sentTestMail/$1");
|
$routes->get("sentTestMail/(:any)", "NotificationController::sentTestMail/$1");
|
||||||
|
$routes->get("send_manual_reminder/(:any)", "DashboardController::sendManualReminder/$1");
|
||||||
|
$routes->get("get_client_policy_list_for_remainder/(:any)", "EmployeeController::get_client_policy_list_for_remainder/$1");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -467,7 +467,7 @@ class DashboardController extends AdminController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendManualRemainder($client_id, $client_branch_id)
|
public function sendManualReminder($client_id, $client_branch_id)
|
||||||
{
|
{
|
||||||
$this->myLogger->logme('error', "sendManualRemainder called with client_id: {$client_id}, client_branch_id: {$client_branch_id}");
|
$this->myLogger->logme('error', "sendManualRemainder called with client_id: {$client_id}, client_branch_id: {$client_branch_id}");
|
||||||
|
|
||||||
|
|||||||
@ -103,7 +103,7 @@ option:disabled {
|
|||||||
<div class="form-group col-md-4" style="margin-top: 18px;">
|
<div class="form-group col-md-4" style="margin-top: 18px;">
|
||||||
<a class="btn btn-primary waves-effect waves-light justify-content-end"
|
<a class="btn btn-primary waves-effect waves-light justify-content-end"
|
||||||
id="fetch_enrolled_data" data-toggle="modal"
|
id="fetch_enrolled_data" data-toggle="modal"
|
||||||
data-target="#full-width-modal" title="Download Sample Excel">Featch
|
data-target="#full-width-modal" title="Download Sample Excel">Fetch
|
||||||
Enrolled Data</a>
|
Enrolled Data</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -714,12 +714,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?= base_url("util/send_manual_remainder/") ?>' + client_id + '/' + client_branch_id,
|
url: '<?= base_url("util/send_manual_reminder/") ?>' + client_id + '/' + client_branch_id,
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
||||||
console.log('send_manual_remainder', res)
|
console.log('send_manual_reminder', res)
|
||||||
|
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.radio-group .form-check {
|
.radio-group .form-check {
|
||||||
margin-right: -110px;
|
margin-right: -335px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radioalign{
|
.radioalign{
|
||||||
@ -2882,186 +2882,214 @@ function createCheckboxes(obj, additional_relationship = [], unique_id = null, p
|
|||||||
}
|
}
|
||||||
|
|
||||||
$relationshipElement.empty();
|
$relationshipElement.empty();
|
||||||
|
|
||||||
let html = `
|
let html = `
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-col">
|
<div class="form-group col-md-12">
|
||||||
<label>Choose applicable family members</label>`;
|
<label>Choose applicable family members</label>
|
||||||
|
<table style="border-collapse: collapse;">
|
||||||
|
<tbody>`;
|
||||||
|
|
||||||
|
|
||||||
if (obj['self'] > 0) {
|
if (obj['self'] > 0) {
|
||||||
let selfValue = additional_relationship['self'] || '1';
|
let selfValue = additional_relationship['self'] || '1';
|
||||||
console.log('selfValue', selfValue);
|
console.log('selfValue', selfValue);
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
<div class="radio-group">
|
<tr>
|
||||||
<label class="col-lg-1">Self:</label>
|
<td><label>Self:</label></td>
|
||||||
<div class="form-check col-lg-1">
|
<td>
|
||||||
<input class="form-check-input" type="radio" name="self" id="self-yes" value="1" ${selfValue == '1' ? 'checked' : ''}>
|
<div class="radio-group">
|
||||||
<label class="form-check-label radioalign" for="self-yes">Yes</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="self" id="self-yes" value="1" ${selfValue == '1' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="self-yes">Yes</label>
|
||||||
<input class="form-check-input" type="radio" name="self" id="self-no" value="0" ${selfValue == '0' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="self-no">No</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="self" id="self-no" value="0" ${selfValue == '0' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="self-no">No</label>
|
||||||
<input class="form-check-input" type="radio" name="self" id="self-any" value="any" ${selfValue == 'any' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="self-any">Maybe</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="self" id="self-any" value="any" ${selfValue == 'any' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="self-any">Maybe</label>
|
||||||
<input class="form-check-input" type="radio" name="self" id="self-na" value="NA" ${selfValue == 'NA' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="self-any">NA</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="self" id="self-na" value="NA" ${selfValue == 'NA' ? 'checked' : ''}>
|
||||||
</div>`;
|
<label class="form-check-label radioalign" for="self-na">NA</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj['spouse'] > 0) {
|
if (obj['spouse'] > 0) {
|
||||||
let spouseValue = additional_relationship['spouse'] || 'any';
|
let spouseValue = additional_relationship['spouse'] || 'any';
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
<div class="radio-group">
|
<tr>
|
||||||
<label class="col-lg-1">Spouse:</label>
|
<td><label>Spouse:</label></td>
|
||||||
<div class="form-check col-lg-1">
|
<td>
|
||||||
<input class="form-check-input" type="radio" name="spouse" id="spouse-yes" value="1" ${spouseValue == '1' ? 'checked' : ''}>
|
<div class="radio-group">
|
||||||
<label class="form-check-label radioalign" for="spouse-yes">Yes</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="spouse" id="spouse-yes" value="1" ${spouseValue == '1' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="spouse-yes">Yes</label>
|
||||||
<input class="form-check-input" type="radio" name="spouse" id="spouse-no" value="0" ${spouseValue == '0' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="spouse-no">No</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="spouse" id="spouse-no" value="0" ${spouseValue == '0' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="spouse-no">No</label>
|
||||||
<input class="form-check-input" type="radio" name="spouse" id="spouse-any" value="any" ${spouseValue == 'any' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="spouse-any">Maybe</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="spouse" id="spouse-any" value="any" ${spouseValue == 'any' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="spouse-any">Maybe</label>
|
||||||
<input class="form-check-input" type="radio" name="spouse" id="spouse-na" value="NA" ${spouseValue == 'NA' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="spouse-any">NA</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="spouse" id="spouse-na" value="NA" ${spouseValue == 'NA' ? 'checked' : ''}>
|
||||||
</div>`;
|
<label class="form-check-label radioalign" for="spouse-na">NA</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj['childrens'] > 0) {
|
if (obj['childrens'] > 0) {
|
||||||
|
|
||||||
let childrensValue = additional_relationship['childrens'] || 'any';
|
let childrensValue = additional_relationship['childrens'] || 'any';
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
<div class="radio-group">
|
<tr>
|
||||||
<label class="col-lg-1">Children:</label>
|
<td><label>Children:</label></td>
|
||||||
<div class="form-check col-lg-1">
|
<td>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-all" value="4" ${childrensValue === '4' ? 'checked' : ''}>
|
<div class="radio-group">
|
||||||
<label class="form-check-label radioalign" for="children-4">4</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-all" value="4" ${childrensValue === '4' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-4">4</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-3" value="3" ${childrensValue === '3' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-3">3</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-3" value="3" ${childrensValue === '3' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-3">3</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-2" value="2" ${childrensValue === '2' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-2">2</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-2" value="2" ${childrensValue === '2' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-2">2</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-1" value="1" ${childrensValue === '1' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-1">1</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-1" value="1" ${childrensValue === '1' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-1">1</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-no" value="0" ${childrensValue === '0' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-unset">No</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-no" value="0" ${childrensValue === '0' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-no">No</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-any" value="any" ${childrensValue === 'any' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-any">Any</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-any" value="any" ${childrensValue === 'any' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="children-any">Any</label>
|
||||||
<input class="form-check-input" type="radio" name="childrens" id="children-unset" value="NA" ${childrensValue === 'NA' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="children-unset">NA</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="childrens" id="children-unset" value="NA" ${childrensValue === 'NA' ? 'checked' : ''}>
|
||||||
</div>`;
|
<label class="form-check-label radioalign" for="children-unset">NA</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj['parents'] > 0) {
|
if (obj['parents'] > 0) {
|
||||||
let parentsValue = additional_relationship['parents'] || 'any';
|
let parentsValue = additional_relationship['parents'] || 'any';
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
<div class="radio-group">
|
<tr>
|
||||||
<label class="col-lg-1">Parents:</label>
|
<td><label>Parents:</label></td>
|
||||||
<div class="form-check col-lg-1">
|
<td>
|
||||||
<input class="form-check-input" type="radio" name="parents" id="parents-single" value="1" ${parentsValue === '1' ? 'checked' : ''}>
|
<div class="radio-group">
|
||||||
<label class="form-check-label radioalign" for="parents-single">1</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents" id="parents-single" value="1" ${parentsValue === '1' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-single">1</label>
|
||||||
<input class="form-check-input" type="radio" name="parents" id="parents-double" value="2" ${parentsValue === '2' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-double">2</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents" id="parents-double" value="2" ${parentsValue === '2' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-double">2</label>
|
||||||
<input class="form-check-input" type="radio" name="parents" id="parents-no" value="0" ${parentsValue === '0' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-no">No</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents" id="parents-no" value="0" ${parentsValue === '0' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-no">No</label>
|
||||||
<input class="form-check-input" type="radio" name="parents" id="parents-any" value="any" ${parentsValue === 'any' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-any">Any</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents" id="parents-any" value="any" ${parentsValue === 'any' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-any">Any</label>
|
||||||
<input class="form-check-input" type="radio" name="parents" id="parents-unset" value="NA" ${parentsValue === 'NA' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-unset">NA</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents" id="parents-unset" value="NA" ${parentsValue === 'NA' ? 'checked' : ''}>
|
||||||
</div>`;
|
<label class="form-check-label radioalign" for="parents-unset">NA</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj['parents-in-law'] > 0) {
|
if (obj['parents-in-law'] > 0) {
|
||||||
let parentsInLawValue = additional_relationship['parents-in-law'] || 'any';
|
let parentsInLawValue = additional_relationship['parents-in-law'] || 'any';
|
||||||
html += `
|
html += `
|
||||||
<div class="radio-group">
|
<tr>
|
||||||
<label class="col-lg-1">Parents-in-law:</label>
|
<td><label>Parents In Law:</label></td>
|
||||||
<div class="form-check col-lg-1">
|
<td>
|
||||||
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-single" value="1" ${parentsInLawValue === '1' ? 'checked' : ''}>
|
<div class="radio-group">
|
||||||
<label class="form-check-label radioalign" for="parents-in-law-single">1</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-single" value="1" ${parentsInLawValue === '1' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-in-law-single">1</label>
|
||||||
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-double" value="2" ${parentsInLawValue === '2' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-in-law-double">2</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-double" value="2" ${parentsInLawValue === '2' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-in-law-double">2</label>
|
||||||
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-no" value="0" ${parentsInLawValue === '0' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-in-law-no">No</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-no" value="0" ${parentsInLawValue === '0' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-in-law-no">No</label>
|
||||||
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-any" value="any" ${parentsInLawValue === 'any' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-in-law-any">Any</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-any" value="any" ${parentsInLawValue === 'any' ? 'checked' : ''}>
|
||||||
<div class="form-check col-lg-1">
|
<label class="form-check-label radioalign" for="parents-in-law-any">Any</label>
|
||||||
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-unset" value="NA" ${parentsInLawValue === 'NA' ? 'checked' : ''}>
|
</div>
|
||||||
<label class="form-check-label radioalign" for="parents-in-law-unset">NA</label>
|
<div class="form-check">
|
||||||
</div>
|
<input class="form-check-input" type="radio" name="parents-in-law" id="parents-in-law-unset" value="NA" ${parentsInLawValue === 'NA' ? 'checked' : ''}>
|
||||||
</div>`;
|
<label class="form-check-label radioalign" for="parents-in-law-unset">NA</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
|
||||||
|
`;
|
||||||
|
|
||||||
$relationshipElement.append(html);
|
console.log(html);
|
||||||
|
|
||||||
if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
$relationshipElement.append(html);
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
} else if (obj['self'] == 0 && obj['spouse'] > 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-110px');
|
|
||||||
} else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] == 0) {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
} else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] == 0 && obj['parents-in-law'] > 0) {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
} else if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-110px');
|
|
||||||
} else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-110px');
|
|
||||||
} else if (obj['self'] > 0 && obj['spouse'] > 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] > 0){
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
} else if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] > 0){
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
} else {
|
|
||||||
$('.radio-group .form-check').css('margin-right', '-60px');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(policy_type == 1 || policy_type == 6 || policy_type == 7){
|
// if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
||||||
$('.radio-group .form-check').css('margin-right', '-50px');
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
}
|
// } else if (obj['self'] == 0 && obj['spouse'] > 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-110px');
|
||||||
|
// } else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] == 0) {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
|
// } else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] == 0 && obj['parents-in-law'] > 0) {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
|
// } else if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-110px');
|
||||||
|
// } else if (obj['self'] == 0 && obj['spouse'] == 0 && obj['childrens'] > 0 && obj['parents'] == 0 && obj['parents-in-law'] == 0) {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-110px');
|
||||||
|
// } else if (obj['self'] > 0 && obj['spouse'] > 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] > 0){
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
|
// } else if (obj['self'] > 0 && obj['spouse'] == 0 && obj['childrens'] == 0 && obj['parents'] > 0 && obj['parents-in-law'] > 0){
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
|
// } else {
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-60px');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(policy_type == 1 || policy_type == 6 || policy_type == 7){
|
||||||
|
// $('.radio-group .form-check').css('margin-right', '-50px');
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user