Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev
This commit is contained in:
commit
aae7254937
@ -195,7 +195,10 @@ $routes->cli('processjob', 'JobWorker::processJob');
|
||||
|
||||
|
||||
|
||||
$routes->get("/api", "RestAuthenticationController::index");
|
||||
// $routes->get("/api", "RestAuthenticationController::index");
|
||||
$routes->post("/api/verifyEmployeeNumber", "RestAuthenticationController::verifyEmployeeWithMobileNumber");
|
||||
$routes->post("/api/getVerifiedUserData", "RestAuthenticationController::getVerifiedUserData");
|
||||
|
||||
$routes->group("/api", ["filter" => "authJWT"], function($routes){
|
||||
$routes->post("logined", "RestAuthenticationController::logined");
|
||||
$routes->post("getId", "RestAuthenticationController::getUserIdFromToken");
|
||||
|
||||
@ -14,6 +14,8 @@ use CodeIgniter\API\ResponseTrait;
|
||||
|
||||
|
||||
|
||||
use App\Models\EmployeeModel;
|
||||
|
||||
|
||||
use Firebase\JWT\JWT;
|
||||
// require_once('../vendor/autoload.php');
|
||||
@ -25,11 +27,15 @@ class RestAuthenticationController extends AdminController
|
||||
use ResponseTrait;
|
||||
|
||||
protected $myLogger;
|
||||
protected $employeeModel;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// set_session_context('Client');
|
||||
$this->myLogger = \Config\Services::mylogger();
|
||||
|
||||
$this->employeeModel = new EmployeeModel();
|
||||
|
||||
}
|
||||
|
||||
@ -50,6 +56,48 @@ class RestAuthenticationController extends AdminController
|
||||
}
|
||||
|
||||
|
||||
public function verifyEmployeeWithMobileNumber()
|
||||
{
|
||||
try {
|
||||
$mobile_number = $this->request->getJSON()->mobile_number;
|
||||
|
||||
$employeeData = $this->employeeModel->where('mobile', $mobile_number)->first();
|
||||
if ($employeeData) {
|
||||
$result = ['user_verification' => true];
|
||||
return ['status' => 'success','code' => 200,'data' => $result];
|
||||
} else {
|
||||
$result = ['user_verification' => false];
|
||||
return ['status' => 'failed','code' => 404,'data' => $result];
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
return ['status' => 'failed','code' => 505,'data' => $th];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getVerifiedUserData()
|
||||
{
|
||||
try {
|
||||
$mobile_number = $this->request->getJSON()->mobile_number;
|
||||
|
||||
$employeeData = $this->employeeModel->where('mobile', $mobile_number)->first();
|
||||
if ($employeeData) {
|
||||
$result = JWTToken::encode($employeeData);
|
||||
return ['status' => 'success','code' => 200,'data' => $result];
|
||||
} else {
|
||||
return ['status' => 'failed','code' => 404,'data' => "No data"];
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
return ['status' => 'failed','code' => 500,'data' => $th];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function employeeLogout()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getUserIdFromToken()
|
||||
{
|
||||
|
||||
@ -32,7 +32,8 @@ class JWTToken
|
||||
try{
|
||||
$token = JWT::encode($request_data ,$secret_Key,'HS512');
|
||||
|
||||
return ['status' => true,'token' => $token];
|
||||
return $token;
|
||||
// return ['status' => true,'token' => $token];
|
||||
}
|
||||
catch (Exception $e) {
|
||||
return ['status' => false,'message' => $e->getMessage()];
|
||||
|
||||
@ -644,31 +644,31 @@
|
||||
};
|
||||
|
||||
function convertNumberToWords(number) {
|
||||
if (number === 0) {
|
||||
return numberWords[number];
|
||||
}
|
||||
if (number === 0) {
|
||||
return numberWords[number];
|
||||
}
|
||||
|
||||
let word = '';
|
||||
let word = '';
|
||||
|
||||
if (number >= 10000000) {
|
||||
word += convertNumberToWords(Math.floor(number / 10000000)) + " Crore ";
|
||||
number %= 10000000;
|
||||
}
|
||||
if (number >= 10000000) {
|
||||
word += convertNumberToWords(Math.floor(number / 10000000)) + " Crore ";
|
||||
number %= 10000000;
|
||||
}
|
||||
|
||||
if (number >= 100000) {
|
||||
word += convertNumberToWords(Math.floor(number / 100000)) + " Lakh ";
|
||||
number %= 100000;
|
||||
}
|
||||
if (number >= 100000) {
|
||||
word += convertNumberToWords(Math.floor(number / 100000)) + " Lakh ";
|
||||
number %= 100000;
|
||||
}
|
||||
|
||||
if (number >= 1000) {
|
||||
word += convertNumberToWords(Math.floor(number / 1000)) + " Thousand ";
|
||||
number %= 1000;
|
||||
}
|
||||
if (number >= 1000) {
|
||||
word += convertNumberToWords(Math.floor(number / 1000)) + " Thousand ";
|
||||
number %= 1000;
|
||||
}
|
||||
|
||||
if (number >= 100) {
|
||||
word += convertNumberToWords(Math.floor(number / 100)) + " Hundred ";
|
||||
number %= 100;
|
||||
}
|
||||
if (number >= 100) {
|
||||
word += convertNumberToWords(Math.floor(number / 100)) + " Hundred ";
|
||||
number %= 100;
|
||||
}
|
||||
|
||||
if (number > 0) {
|
||||
if (word !== '') {
|
||||
@ -680,8 +680,12 @@
|
||||
word += numberWords[Math.floor(number / 10) * 10] + " " + numberWords[number % 10];
|
||||
}
|
||||
}
|
||||
return word.trim();
|
||||
}
|
||||
|
||||
return word;
|
||||
function convertCommaNumberToWords(input) {
|
||||
const number = parseInt(input.replace(/,/g, ''), 10);
|
||||
return convertNumberToWords(number);
|
||||
}
|
||||
|
||||
function onlyNumbers(event){
|
||||
@ -690,4 +694,13 @@
|
||||
if(charcode>= 48 && charcode <= 57)return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function formatNumber(input) {
|
||||
var value = input.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
input.value = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
@ -13,7 +13,7 @@
|
||||
.radiobuttondiv{
|
||||
margin-left: 32px;
|
||||
}
|
||||
.form-control-client-policy-master{
|
||||
.{
|
||||
width:62% !important;
|
||||
margin-left: 30px;
|
||||
margin-top: 3px
|
||||
@ -49,10 +49,10 @@
|
||||
display:none;
|
||||
}
|
||||
.jodit-container{
|
||||
width: 821px !important;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-left: 30px;
|
||||
/* width: 821px !important; */
|
||||
/* margin-top: 3px; */
|
||||
/* margin-bottom: 3px; */
|
||||
/* margin-left: 30px; */
|
||||
/* height: 0px !important; */
|
||||
/* min-height: 100px !important; */
|
||||
}
|
||||
@ -65,7 +65,7 @@
|
||||
.jodit-wysiwyg{
|
||||
margin-bottom: 162px;
|
||||
}
|
||||
.form-control-client-policy-masters{
|
||||
.s{
|
||||
margin-left: 30px;
|
||||
width: 689px;
|
||||
}
|
||||
@ -85,117 +85,169 @@
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<div class="form-column">
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Sum Insured</label>
|
||||
<input type="text" name="sum_insured" id="sum_insured" class="form-control form-control-client-policy-master" onkeypress = "return onlyNumbers(event)">
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="sumInsured">Sum Insured</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="sum_insured" id="sum_insured" class="form-control" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div id='numberToWordGMC' class="text-danger" ></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='numberToWordGMC' class="text-danger" style="float: right;position: relative;right: 25px;bottom: 10px;"></div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Family Floater</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="family_floater" value="1"> Yes
|
||||
<input type="radio" name="family_floater" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div>
|
||||
<input type="checkbox" name="family_floaters[]" value="self" id="self" checked disabled> Self
|
||||
<input type="checkbox" name="family_floaters[]" value="spouse" id="spouse"> Spouse
|
||||
<input type="checkbox" name="family_floaters[]" value="child1" id="child1"> Child 1
|
||||
<input type="checkbox" name="family_floaters[]" value="child2" id="child2"> Child 2
|
||||
<input type="checkbox" name="family_floaters[]" value="child3" id="child3"> Child 3
|
||||
<input type="checkbox" name="family_floaters[]" value="child4" id="child4"> Child 4
|
||||
</div>
|
||||
<div style="margin-top:10px">
|
||||
<input type="checkbox" name="family_floaters[]" value="parent1" id="parent1"> Parent 1
|
||||
<input type="checkbox" name="family_floaters[]" value="parent2" id="parent2"> Parent 2
|
||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law1" id="parent_in_law1"> Parent-In-Law 1
|
||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law2" id="parent_in_law2"> Parent-In-Law 2
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class=" " style="width: 400px;">Family Floater</label><br>
|
||||
<div class="flex-container">
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="family_floater" value="1"> Yes
|
||||
<input type="radio" name="family_floater" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div style=" margin-top: 27px;margin-bottom: 7px; margin-left: 31px;">
|
||||
<div>
|
||||
<input type="checkbox" name="family_floaters[]" value="self" id="self" checked disabled> Self
|
||||
<input type="checkbox" name="family_floaters[]" value="spouse" id="spouse"> Spouse
|
||||
<input type="checkbox" name="family_floaters[]" value="child1" id="child1"> Child 1
|
||||
<input type="checkbox" name="family_floaters[]" value="child2" id="child2"> Child 2
|
||||
<input type="checkbox" name="family_floaters[]" value="child3" id="child3"> Child 3
|
||||
<input type="checkbox" name="family_floaters[]" value="child4" id="child4"> Child 4
|
||||
</div>
|
||||
<div style="margin-top:10px">
|
||||
<input type="checkbox" name="family_floaters[]" value="parent1" id="parent1"> Parent 1
|
||||
<input type="checkbox" name="family_floaters[]" value="parent2" id="parent2"> Parent 2
|
||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law1" id="parent_in_law1"> Parent-In-Law 1
|
||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law2" id="parent_in_law2"> Parent-In-Law 2
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Corporate Buffer</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label class="form-check-label " for="corporatebuffer" style="width: 400px;">Corporate Buffer</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="corporatebuffer" value="1"> Yes
|
||||
<input type="radio" name="corporatebuffer" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="corporatebuffer" value="1"> Yes
|
||||
<input type="radio" name="corporatebuffer" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Waiver of Pre-existing Diseases</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="waiverofpreexistingdiseases" style="width: 400px;">Waiver of Pre-existing Diseases</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="waiverofpreexistingdiseases" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverofpreexistingdiseases" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="waiverofpreexistingdiseases" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverofpreexistingdiseases" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Maternity Coverage</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Maternity Coverage</label>
|
||||
<input type="text" name="maternitycoverage" id="maternitycoverage" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="maternitycoverage" id="maternitycoverage" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Twin Delivery</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="emp_code" class=" " style="width: 400px; ">Twin Delivery</label>
|
||||
<input type="text" name="twindelivery" id="twindelivery" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="twindelivery" id="twindelivery" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Pre and Post natal</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="emp_code" class=" " style="width: 400px; ">Pre and Post natal</label>
|
||||
<input type="text" name="preandpostnatal" id="preandpostnatal" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="preandpostnatal" id="preandpostnatal" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Baby Day 1 Cover</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="emp_code" class=" " style="width: 400px; ">Baby Day 1 Cover</label>
|
||||
<input type="text" name="babyday1cover" id="babyday1cover" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="babyday1cover" id="babyday1cover" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">9-month waiting Period –waived</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="9monthwaitingperiodwaived" style="width: 400px;">9-month waiting Period –waived</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="9monthwaitingperiodwaived" value="1"> Yes, waived off
|
||||
<input type="radio" name="9monthwaitingperiodwaived" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="9monthwaitingperiodwaived" value="1"> Yes, waived off
|
||||
<input type="radio" name="9monthwaitingperiodwaived" value="0" style="margin-left:10px"> No </div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Cover from the date of Joining</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Cover from the date of Joining</label>
|
||||
<input type="text" name="coverfromthedateofjoining" id="coverfromthedateofjoining" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="coverfromthedateofjoining" id="coverfromthedateofjoining" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Waiver of 1, 2, 3 & 4th year Exclusions</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="waiverof1,2,3&4thyearexclusions" style="width: 400px;">Waiver of 1, 2, 3 & 4th year Exclusions</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="waiverof1,2,3&4thyearexclusions" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverof1,2,3&4thyearexclusions" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="waiverof1,2,3&4thyearexclusions" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverof1,2,3&4thyearexclusions" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Waiver of 30 days waiting period</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="waiverof30dayswaitingperiod" style="width: 400px;">Waiver of 30 days waiting period</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="waiverof30dayswaitingperiod" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverof30dayswaitingperiod" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="waiverof30dayswaitingperiod" value="1"> Yes, waived off
|
||||
<input type="radio" name="waiverof30dayswaitingperiod" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Pre Hospitalization Cover</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Pre Hospitalization Cover</label>
|
||||
<input type="text" name="prehospitalizationcover" id="prehospitalizationcover" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="prehospitalizationcover" id="prehospitalizationcover" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Congenital Diseases - Internal</label>
|
||||
</div>
|
||||
<!-- <div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Post Hospitalization Cover</label>
|
||||
<input type="text" name="posthospitalizationcover" id="posthospitalizationcover" class="form-control form-control-client-policy-master">
|
||||
</div> -->
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="congenitaldiseasesinternal" style="width: 400px;">Congenital Diseases - Internal</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="congenitaldiseasesinternal" value="internal"> Internal Covered
|
||||
<input type="radio" name="congenitaldiseasesinternal" value="no" style="margin-left:10px"> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="congenitaldiseasesinternal" value="internal"> Internal Covered
|
||||
<input type="radio" name="congenitaldiseasesinternal" value="no" style="margin-left:10px"> No </div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Co-Pay/Zone wise Co Pay</label>
|
||||
</div>
|
||||
<!-- <div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="congenitaldiseasesexternal" style="width: 400px;">Congenital Diseases - External</label>
|
||||
<input type="text" name="congenitaldiseasesexternal" id="congenitaldiseasesexternal" class="form-control form-control-client-policy-master">
|
||||
</div> -->
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="copayzonewisecopay" class=" " style="width: 400px;">Co-Pay/Zone wise Co Pay</label>
|
||||
<select name="copayzonewisecopay" id="copayzonewisecopay" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<select name="copayzonewisecopay" id="copayzonewisecopay" class="form-control ">
|
||||
<option value="">Select an option</option>
|
||||
<option value="5%">5%</option>
|
||||
<option value="10%">10%</option>
|
||||
@ -208,136 +260,232 @@
|
||||
<option value="45%">45%</option>
|
||||
<option value="50%">50%</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Bio absorbable stent / Toric lens/ Multi Focal lens</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Bio absorbable stent / Toric lens/ Multi Focal lens</label>
|
||||
<input type="text" name="bioabsorbablestenttoriclensmultifocallens" id="bioabsorbablestenttoriclensmultifocallens" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="bioabsorbablestenttoriclensmultifocallens" id="bioabsorbablestenttoriclensmultifocallens" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Room Rent Limit</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Room Rent Limit</label>
|
||||
<input type="text" name="roomrentlimit" id="roomrentlimit" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="roomrentlimit" id="roomrentlimit" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Proportionate Deduction Clause</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="proportionatedeductionclause" class=" " style="width: 400px;">Proportionate Deduction Clause</label>
|
||||
<select name="proportionatedeductionclause" id="proportionatedeductionclause" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<select name="proportionatedeductionclause" id="proportionatedeductionclause" class="form-control ">
|
||||
<option value="">Select an option</option>
|
||||
<option value="NotApplicable/WaivedOff">Not Applicable / Waived Off</option>
|
||||
<option value="Applicable">Applicable</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Nursing Allowance</label>
|
||||
<input type="text" name="nursingallowance" id="nursingallowance" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="ailmentcapping" style="width: 400px;">Ailment capping</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="ailmentcapping" value="1"> Yes
|
||||
<input type="radio" name="ailmentcapping" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Ambulance Charges</label>
|
||||
<input type="text" name="ambulancecharges" id="ambulancecharges" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Air Ambulance</label>
|
||||
<input type="text" name="airambulance" id="airambulance" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Family Transportation Benefit</label>
|
||||
<input type="text" name="familytransportationbenefit" id="familytransportationbenefit" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="reasonableandcustomarycharges" style="width: 400px;">Reasonable and Customary Charges</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="reasonableandcustomarycharges" value="1">Applicable
|
||||
<input type="radio" name="reasonableandcustomarycharges" value="0" style="margin-left:10px">Not Applicable
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Day Care Treatment</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="daycaretreatment" value="1"> Yes
|
||||
<input type="radio" name="daycaretreatment" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="ayudhtreatmentcover" style="width: 400px;">AYUSH treatment cover</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="ayudhtreatmentcover" value="1"> Yes
|
||||
<input type="radio" name="ayudhtreatmentcover" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">ARMD Covered</label>
|
||||
<input type="text" name="armdcovered" id="armdcovered" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Sum Insured enhancement</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="suminsuredenhancement" value="1"> Yes
|
||||
<input type="radio" name="suminsuredenhancement" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Automatic Sum Insured reinstatement</label>
|
||||
<input type="text" name="automaticsuminsuredreinstatement" id="automaticsuminsuredreinstatement" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Additional Sickness Benefit</label>
|
||||
<textarea name="additionalsicknessbenefit" id="additionalsicknessbenefit" class="form-control form-control-client-policy-master"></textarea>
|
||||
</div>
|
||||
<!-- <div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Additional Sickness Benefit</label>
|
||||
<input type="text" name="additionalsicknessbenefit" id="additionalsicknessbenefit" class="form-control form-control-client-policy-master">
|
||||
</div> -->
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Lasik Surgery</label>
|
||||
<input type="text" name="lasiksurgery" id="lasiksurgery" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Mid Term inclusion</label>
|
||||
<input type="text" name="midterminclusion" id="midterminclusion" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">CAPD</label>
|
||||
<input type="text" name="capd" id="capd" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Organ donor expenses</label>
|
||||
<input type="text" name="organdonorexpenses" id="organdonorexpenses" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Modern treatments as per IRDAI</label>
|
||||
<input type="text" name="moderntreatmentsasperirdai" id="moderntreatmentsasperirdai" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="emp_code" class=" " style="width: 400px;">Wellness</label>
|
||||
<textarea name="Wellness" id="Wellness" class="form-control form-control-client-policy-master"></textarea>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="days_of_discharge" class=" ">Days of Discharge</label>
|
||||
<div class="input-group mb-3" style="margin-left: 0px;">
|
||||
<input type="text" id="days_of_discharge" name="days_of_discharge" class="form-control form-control-client-policy-master" placeholder="Enter the number of days">
|
||||
<div class="input-group-append input-group-append-client-policy-master">
|
||||
<span class="input-group-text" id="basic-addon2">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="days_from_dod" class=" ">Days from DOD</label>
|
||||
<div class="input-group mb-3" style="margin-left: 0px;">
|
||||
<input type="text" id="days_from_dod" name="days_from_dod" class="form-control form-control-client-policy-master" placeholder="Enter the number of days">
|
||||
<div class="input-group-append input-group-append-client-policy-master">
|
||||
<span class="input-group-text" id="basic-addon2">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Nursing Allowance</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="nursingallowance" id="nursingallowance" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Ailment capping</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="ailmentcapping" value="1"> Yes
|
||||
<input type="radio" name="ailmentcapping" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Ambulance Charges</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="ambulancecharges" id="ambulancecharges" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Air Ambulance</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="airambulance" id="airambulance" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Family Transportation Benefit</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="familytransportationbenefit" id="familytransportationbenefit" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Reasonable and Customary Charges</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="reasonableandcustomarycharges" value="1">Applicable
|
||||
<input type="radio" name="reasonableandcustomarycharges" value="0" style="margin-left:10px">Not Applicable </div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Day Care Treatment</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="daycaretreatment" value="1"> Yes
|
||||
<input type="radio" name="daycaretreatment" value="0" style="margin-left:10px"> No </div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">AYUSH treatment cover</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="ayudhtreatmentcover" value="1"> Yes
|
||||
<input type="radio" name="ayudhtreatmentcover" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">ARMD Covered</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="armdcovered" id="armdcovered" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Sum Insured enhancement</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="suminsuredenhancement" value="1"> Yes
|
||||
<input type="radio" name="suminsuredenhancement" value="0" style="margin-left:10px"> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Automatic Sum Insured reinstatement</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="automaticsuminsuredreinstatement" id="automaticsuminsuredreinstatement" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Additional Sickness Benefit</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea name="additionalsicknessbenefit" id="additionalsicknessbenefit" class="form-control "></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Lasik Surgery</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="lasiksurgery" id="lasiksurgery" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Mid Term inclusion</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="midterminclusion" id="midterminclusion" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">CAPD</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="capd" id="capd" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Organ donor expenses</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="organdonorexpenses" id="organdonorexpenses" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Modern treatments as per IRDAI</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="moderntreatmentsasperirdai" id="moderntreatmentsasperirdai" class="form-control ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Wellness</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea name="Wellness" id="Wellness" class="form-control "></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Days of Discharge</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" id="days_of_discharge" name="days_of_discharge" class="form-control " placeholder="Enter the number of days">
|
||||
<div class="input-group-append input-group-append-client-policy-master">
|
||||
<span class="input-group-text" id="basic-addon2">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Days from DOD</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" id="days_from_dod" name="days_from_dod" class="form-control " placeholder="Enter the number of days">
|
||||
<div class="input-group-append input-group-append-client-policy-master">
|
||||
<span class="input-group-text" id="basic-addon2">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <hr> -->
|
||||
|
||||
@ -602,9 +750,9 @@ var grid_html = '';
|
||||
});
|
||||
|
||||
$("#sum_insured").on("keyup", function() {
|
||||
var inputNumber = parseInt($(this).val());
|
||||
if (!isNaN(inputNumber)) {
|
||||
var result = convertNumberToWords(inputNumber);
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#numberToWordGMC").text(result);
|
||||
} else {
|
||||
$("#numberToWordGMC").text("");
|
||||
@ -643,7 +791,7 @@ var grid_html = '';
|
||||
var index =$('.modifyclassinput').length;
|
||||
var appendElement =`<div class="form-group col-md-6 form-group-client-policy-masters removeDom">
|
||||
<label for="specialconditionlabel" class="special_condition_label[]" style="width: 400px;"><input name="special_condition_label[]" id="special_condition_label[]"><span class="specialConditionClose" style="color: red;margin-left: 20px;">X</span></label>
|
||||
<input type="text" name="special_condition_input[]" id="special_condition_input[]" class="form-control form-control-client-policy-masters special_condition_input[]">
|
||||
<input type="text" name="special_condition_input[]" id="special_condition_input[]" class="form-control s special_condition_input[]">
|
||||
</div>`;
|
||||
$('.form-column').each(function() {
|
||||
$(this).append(appendElement);
|
||||
@ -668,4 +816,15 @@ var grid_html = '';
|
||||
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
||||
});
|
||||
|
||||
// function formatNumber(input) {
|
||||
// // Remove non-numeric characters
|
||||
// let value = input.value.replace(/\D/g, '');
|
||||
|
||||
// // Add commas
|
||||
// value = Number(value).toLocaleString('en-IN');
|
||||
|
||||
// // Update the input value
|
||||
// input.value = value;
|
||||
// }
|
||||
|
||||
</script>
|
||||
@ -53,10 +53,10 @@
|
||||
display:none;
|
||||
}
|
||||
.jodit-container{
|
||||
width: 690px !important;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-left: 30px;
|
||||
/* width: 690px !important; */
|
||||
/* margin-top: 3px; */
|
||||
/* margin-bottom: 3px; */
|
||||
/* margin-left: 30px; */
|
||||
/* height: 0px !important; */
|
||||
/* min-height: 100px !important; */
|
||||
}
|
||||
@ -86,162 +86,215 @@
|
||||
<input type="hidden" id="emp_count"/>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="form-column">
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="sumInsured">Sum Insured</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input class="form-control" type="text" name="sumInsured2" id="sumInsured2" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" style="width: 100% !important;">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div id='numberToWordSumInsured' class="text-danger" ></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="sumInsured" class=" " style="width: 400px;">Sum Insured</label>
|
||||
<input type="text" name="sumInsured2" id="sumInsured2" class="form-control form-control-client-policy-master" onkeypress = "return onlyNumbers(event)"> <br>
|
||||
</div>
|
||||
|
||||
<div id='numberToWord' class="text-danger" style="float: right;position: relative;right: 25px;bottom: 10px;"></div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="totalSumInsured" class=" " style="width: 400px;">Total Sum Insured</label>
|
||||
<input type="text" name="totalSumInsured" id="totalSumInsured" class="form-control form-control-client-policy-master">
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Total Sum Insured</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label class="form-check-label " for="corporatebuffer" style="width: 400px;">Accidental Death Benefit</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="accidentalDeathBenefit" value="1"> Yes
|
||||
<input type="radio" name="accidentalDeathBenefit" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" style="width: 100% !important;" class="form-control" name="totalSumInsured" id="totalSumInsured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div id='numberToWordTotalSumInsured' class="text-danger" ></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Accidental Death Benefit</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" >
|
||||
<label for="permanentTotalDisablement" class=" " style="width: 400px;">Permanent Total Disablement</label>
|
||||
<input type="text" name="permanentTotalDisablement" id="permanentTotalDisablement" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="accidentalDeathBenefit" value="1"> Yes
|
||||
<input type="radio" name="accidentalDeathBenefit" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Permanent Total Disablement</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="permanentPartialDisablement" class=" " style="width: 400px;">Permanent Partial Disablement</label>
|
||||
<input type="text" name="permanentPartialDisablement" id="permanentPartialDisablement" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="permanentTotalDisablement" id="permanentTotalDisablement" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Permanent Partial Disablement</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="temporaryTotalDisablementBenefit" class=" " style="width: 400px;">Temporary Total Disablement benefit</label>
|
||||
<input type="text" name="temporaryTotalDisablementBenefit" id="temporaryTotalDisablementBenefit" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="permanentPartialDisablement" id="permanentPartialDisablement" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Temporary Total Disablement benefit</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="accidentalHospitalizationExpenses" class=" " style="width: 400px;">Accidental Hospitalization Expenses</label>
|
||||
<select name="accidentalHospitalizationExpenses" id="accidentalHospitalizationExpenses" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="temporaryTotalDisablementBenefit" id="temporaryTotalDisablementBenefit" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Accidental Hospitalization Expenses</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<select name="accidentalHospitalizationExpenses" id="accidentalHospitalizationExpenses" class="form-control">
|
||||
<option value="">Select an option</option>
|
||||
<option value="No">No</option>
|
||||
<option value="10%-40%">Covered upto 10% of SI or 40% of actual which ever is less</option>
|
||||
<option value="20%-50%">Covered upto 20% of SI or 50% of actual which ever is less</option>
|
||||
<option value="50K-500k">INR 50K, to vary in multiples of 25K till 5 Lacs</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Children Education Welfare Fund</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="childrenEducationWelfareFund" class=" " style="width: 400px;">Children Education Welfare Fund</label>
|
||||
<select name="childrenEducationWelfareFund" id="childrenEducationWelfareFund" class="form-control form-control-client-policy-master">
|
||||
<div class="col-md-6">
|
||||
<select name="childrenEducationWelfareFund" id="childrenEducationWelfareFund" class="form-control">
|
||||
<option value="">Select an option</option>
|
||||
<option value="No">No</option>
|
||||
<option value="10000">Covered upto 10,000/ per child ( Restricted to 2 children)</option>
|
||||
<option value="5000">Covered upto 5,000/ per child ( Restricted to 2 children)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="compassionateVisitExpenses" style="width: 400px;">Compassionate Visit Expenses</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="compassionateVisitExpenses" value="1"> Yes
|
||||
<input type="radio" name="compassionateVisitExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="compassionateVisitExpensesData" class=" " style="width: 400px; ">Compassionate Visit Expenses Data</label>
|
||||
<input type="text" name="compassionateVisitExpensesData" id="compassionateVisitExpensesData" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="brokenBoneExpenses" style="width: 400px;">Broken Bone Expenses</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="brokenBoneExpenses" value="1"> Yes
|
||||
<input type="radio" name="brokenBoneExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="brokenBoneExpensesData" class=" " style="width: 400px; ">Broken Bone Expenses Data</label>
|
||||
<input type="text" name="brokenBoneExpensesData" id="brokenBoneExpensesData" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="ambulanceCharges" style="width: 400px;">Ambulance charges</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="ambulanceCharges" value="1"> Yes
|
||||
<input type="radio" name="ambulanceCharges" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="ambulanceChargesData" class=" " style="width: 400px; ">Ambulance charges Data</label>
|
||||
<input type="text" name="ambulanceChargesData" id="ambulanceChargesData" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="burnExpenses" style="width: 400px;">Burn Expenses</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="burnExpenses" value="1"> Yes
|
||||
<input type="radio" name="burnExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="burnExpensesData" class=" " style="width: 400px; ">Burn Expenses Data</label>
|
||||
<input type="text" name="burnExpensesData" id="burnExpensesData" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="carriageOfDeadBody" style="width: 400px;">Carriage of Dead Body</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="carriageOfDeadBody" value="1"> Yes
|
||||
<input type="radio" name="carriageOfDeadBody" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master" style="display:none;">
|
||||
<label for="carriageOfDeadBodyData" class=" " style="width: 400px; ">Carriage of Dead Body Data</label>
|
||||
<input type="text" name="carriageOfDeadBodyData" id="carriageOfDeadBodyData" class="form-control form-control-client-policy-master">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label " for="animalSnakeInsectBite" style="width: 400px;">Animal/Snake/Insect bite</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="animalSnakeInsectBite" value="1"> Yes
|
||||
<input type="radio" name="animalSnakeInsectBite" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label class="form-check-label" for="terrorism" style="width: 400px;">Terrorism</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="terrorism" value="1"> Yes
|
||||
<input type="radio" name="terrorism" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 form-group-client-policy-master">
|
||||
<label for="worldwideCover" class=" " style="width: 400px;">Worldwide Cover</label>
|
||||
<div class="radiobuttondiv">
|
||||
<input type="radio" name="worldwideCover" value="1"> Yes
|
||||
<input type="radio" name="worldwideCover" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Compassionate Visit Expenses</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="compassionateVisitExpenses" value="1"> Yes
|
||||
<input type="radio" name="compassionateVisitExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Compassionate Visit Expenses Data</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="compassionateVisitExpensesData" id="compassionateVisitExpensesData" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Broken Bone Expenses</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="brokenBoneExpenses" value="1"> Yes
|
||||
<input type="radio" name="brokenBoneExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Broken Bone Expenses Data</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="brokenBoneExpensesData" id="brokenBoneExpensesData" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured"> Ambulance charges</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="ambulanceCharges" value="1"> Yes
|
||||
<input type="radio" name="ambulanceCharges" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Ambulance charges Data</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="ambulanceChargesData" id="ambulanceChargesData" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured"> Burn Expenses</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="burnExpenses" value="1"> Yes
|
||||
<input type="radio" name="burnExpenses" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Burn Expenses Data</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="burnExpensesData" id="burnExpensesData" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Carriage of Dead Body</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="carriageOfDeadBody" value="1"> Yes
|
||||
<input type="radio" name="carriageOfDeadBody" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;display:none;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Carriage of Dead Body Data</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" name="carriageOfDeadBodyData" id="carriageOfDeadBodyData" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Animal/Snake/Insect bite</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="animalSnakeInsectBite" value="1"> Yes
|
||||
<input type="radio" name="animalSnakeInsectBite" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Terrorism</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="terrorism" value="1"> Yes
|
||||
<input type="radio" name="terrorism" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-md-6">
|
||||
<label for="totalSumInsured">Worldwide Cover</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" name="worldwideCover" value="1"> Yes
|
||||
<input type="radio" name="worldwideCover" value="0" style="margin-left:10px" checked> No
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group text-right m-b-0" style="margin-top: -49px;">
|
||||
|
||||
|
||||
<div class="form-group text-right m-b-0" style="margin-top: -49px;">
|
||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnGPATermsSubmit" style="margin-top: 100px;">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -427,7 +480,8 @@
|
||||
if (res) {
|
||||
|
||||
let jsonObject = JSON.parse(res.data);
|
||||
$("#numberToWord").text(convertNumberToWords(jsonObject.sumInsured2));
|
||||
$("#numberToWordSumInsured").text(convertCommaNumberToWords(jsonObject.sumInsured2));
|
||||
$("#numberToWordTotalSumInsured").text(convertCommaNumberToWords(jsonObject.totalSumInsured));
|
||||
if(jsonObject.compassionateVisitExpenses == '1'){
|
||||
var element = $('input[name="compassionateVisitExpenses"]').parent().parent().next()[0];
|
||||
$(element).css("display", "");
|
||||
@ -499,13 +553,37 @@
|
||||
|
||||
|
||||
$("#sumInsured2").on("keyup", function() {
|
||||
var inputNumber = parseInt($(this).val());
|
||||
if (!isNaN(inputNumber)) {
|
||||
var result = convertNumberToWords(inputNumber);
|
||||
$("#numberToWord").text(result);
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#numberToWordSumInsured").text(result);
|
||||
} else {
|
||||
$("#numberToWord").text("");
|
||||
$("#numberToWordSumInsured").text("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#totalSumInsured").on("keyup", function() {
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#numberToWordTotalSumInsured").text(result);
|
||||
} else {
|
||||
$("#numberToWordTotalSumInsured").text("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
// function formatNumber(input) {
|
||||
// Remove non-numeric characters
|
||||
// let value = input.value.replace(/\D/g, '');
|
||||
|
||||
// Add commas
|
||||
// value = Number(value).toLocaleString('en-IN');
|
||||
|
||||
// Update the input value
|
||||
// input.value = value;
|
||||
// }
|
||||
</script>
|
||||
@ -86,7 +86,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-4" id="gpa_sum_insured">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="gpa_si" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_si_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">Multiplier<span class="text-danger">*</span></label>
|
||||
@ -94,7 +95,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium" id="gpa_premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
@ -109,11 +111,13 @@
|
||||
<input value="1" type="hidden" name="policy_type">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="gpa_si" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_si_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium" id="gpa_premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
@ -128,11 +132,13 @@
|
||||
<div class="form-row" id="grid_3">
|
||||
<div class="form-group col-md-5">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="gpa_si" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="gpa_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_si_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-5">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="gpa_premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0, 3)">x</button>
|
||||
@ -150,8 +156,9 @@
|
||||
grid_html = `
|
||||
<div class="form-row" id="grid_4">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="sum_insured" required>
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
@ -164,7 +171,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,4)">x</button>
|
||||
@ -184,7 +192,8 @@
|
||||
<div class="form-row" id="grid_5">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -196,7 +205,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,5)">x</button>
|
||||
@ -215,7 +225,8 @@
|
||||
<div class="form-row" id="grid_6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
@ -228,7 +239,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,6)">x</button>
|
||||
@ -248,7 +260,8 @@
|
||||
<div class="form-row" id="grid_7">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -260,7 +273,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,7)">x</button>
|
||||
@ -281,7 +295,8 @@
|
||||
<div class="form-row" id="grid_8">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -289,7 +304,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,8)">x</button>
|
||||
@ -308,7 +324,8 @@
|
||||
<div class="form-row" id="grid_9">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -316,7 +333,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,9)">x</button>
|
||||
@ -335,7 +353,8 @@
|
||||
<div class="form-row" id="grid_10">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -347,7 +366,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,10)">x</button>
|
||||
@ -366,7 +386,8 @@
|
||||
<div class="form-row" id="grid_11">
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -374,7 +395,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
||||
@ -421,6 +443,50 @@
|
||||
$('#si_or_bp').val("2");
|
||||
}
|
||||
|
||||
$("#gpa_si").on("keyup", function() {
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#gpa_si_number_word").text(result);
|
||||
} else {
|
||||
$("#gpa_si_number_word").text("");
|
||||
}
|
||||
});
|
||||
|
||||
$("#gpa_premium").on("keyup", function() {
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#gpa_premium_number_word").text(result);
|
||||
} else {
|
||||
$("#gpa_premium_number_word").text("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#sum_insured").on("keyup", function() {
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#sum_insured_number_word").text(result);
|
||||
} else {
|
||||
$("#sum_insured_number_word").text("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#premium").on("keyup", function() {
|
||||
var inputNumber = $(this).val();
|
||||
if (inputNumber) {
|
||||
var result = convertCommaNumberToWords(inputNumber);
|
||||
$("#premium_number_word").text(result);
|
||||
} else {
|
||||
$("#premium_number_word").text("");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -566,11 +632,13 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-5">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="gpa_si" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="gpa_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_si_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-5">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="gpa_premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="gpa_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='gpa_premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(3)">+</button>
|
||||
@ -594,7 +662,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(4)">+</button>
|
||||
@ -609,7 +678,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -621,7 +691,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(5)">+</button>
|
||||
@ -635,7 +706,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)"required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
@ -648,7 +720,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(6)">+</button>
|
||||
@ -663,7 +736,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -675,7 +749,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(7)">+</button>
|
||||
@ -689,7 +764,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -697,7 +773,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(8)">+</button>
|
||||
@ -711,7 +788,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -719,7 +797,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(9)">+</button>
|
||||
@ -733,7 +812,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||
@ -745,7 +825,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(10)">+</button>
|
||||
@ -759,7 +840,8 @@
|
||||
<div class="form-row" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="si[]" id="sum_insured_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='sum_insured_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Grade/Band<span class="text-danger">*</span></label>
|
||||
@ -767,7 +849,8 @@
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="premium[]" id="premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||
<div id='premium_number_word_${Count}' class="text-danger" ></div>
|
||||
</div>
|
||||
<div class="form-group col-md-2">
|
||||
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
||||
@ -793,6 +876,19 @@
|
||||
Count++
|
||||
// console.log('count 3',Count)
|
||||
|
||||
|
||||
// Number to word
|
||||
$(document).keyup(function(event) {
|
||||
console.log(event.target.value);
|
||||
if (event.target) {
|
||||
var result = convertCommaNumberToWords(event.target.value);
|
||||
var next = event.target.nextElementSibling;
|
||||
if (next && next.tagName.toLowerCase() === 'div') {
|
||||
next.textContent = result; // Set the content of the div
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function removebutton(index, type) {
|
||||
@ -822,5 +918,25 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// function formatNumber(input) {
|
||||
// console.log("formatNumber");
|
||||
// console.log(input);
|
||||
// Remove non-numeric characters
|
||||
// let value = input.value.replace(/\D/g, '');
|
||||
|
||||
// Add commas
|
||||
// value = Number(value).toLocaleString('en-IN');
|
||||
// Update the input value
|
||||
// input.value = value;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user