asset-info form details changes : kdk
This commit is contained in:
parent
e91d569bba
commit
0c5e266257
@ -461,7 +461,7 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<div fxFlex="33">
|
<div fxFlex="33%" class="ml-xs example-full-width">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="Type" formControlName="investments_type" required>
|
<mat-select placeholder="Type" formControlName="investments_type" required>
|
||||||
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name }}</mat-option>
|
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name }}</mat-option>
|
||||||
@ -469,16 +469,20 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div fxFlex="33" *ngIf="detail.get('investments_type').value == 6 "> -->
|
<!-- <div fxFlex="33" *ngIf="detail.get('investments_type').value == 6 "> -->
|
||||||
<mat-form-field>
|
<div fxFlex="33%" >
|
||||||
|
<mat-form-field class="ml-xs example-full-width">
|
||||||
<input matInput placeholder="Specify Other Type" formControlName="other_investments_type" autocomplete="off">
|
<input matInput placeholder="Specify Other Type" formControlName="other_investments_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<div fxFlex="33" >
|
<div fxFlex="33%" >
|
||||||
<mat-form-field class="ml-xs example-full-width">
|
<mat-form-field class="ml-xs example-full-width">
|
||||||
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" required (keypress)="keyPress($event)" autocomplete="off">
|
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" required (keypress)="keyPress($event)" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="33">
|
</div>
|
||||||
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
<div fxFlex="33%">
|
||||||
<mat-form-field class="ml-xs example-full-width">
|
<mat-form-field class="ml-xs example-full-width">
|
||||||
<input matInput placeholder="Bank Name" formControlName="bank_name" required autocomplete="off">
|
<input matInput placeholder="Bank Name" formControlName="bank_name" required autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
@ -523,7 +527,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--Desction Dynamic details : END -->
|
<!--Desction Dynamic details : END -->
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<!--<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">-->
|
||||||
<div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 4">
|
<div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 4">
|
||||||
<div fxFlex="33">
|
<div fxFlex="33">
|
||||||
<mat-form-field class="ml-xs example-full-width">
|
<mat-form-field class="ml-xs example-full-width">
|
||||||
@ -548,8 +552,8 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="33">
|
<div fxFlex="33" *ngIf="sup.get('name_of_the_owner').value == 0 && sup.get('name_of_the_owner').value != ''">
|
||||||
<mat-form-field class="ml-xs example-full-width" *ngIf="sup.get('name_of_the_owner').value == 0 && sup.get('name_of_the_owner').value != ''">
|
<mat-form-field class="ml-xs example-full-width" >
|
||||||
<input matInput placeholder="Specify Other Owner Name"
|
<input matInput placeholder="Specify Other Owner Name"
|
||||||
formControlName="other_owner" autocomplete="off">
|
formControlName="other_owner" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
@ -565,7 +569,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!--</div>-->
|
||||||
<!---- <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 5">
|
<!---- <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 5">
|
||||||
<label>Year and Month of Purchase?</label>
|
<label>Year and Month of Purchase?</label>
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
@ -749,4 +753,7 @@
|
|||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -478,25 +478,25 @@ public m_investmentType = [];
|
|||||||
loadInsuranceDescription() {
|
loadInsuranceDescription() {
|
||||||
return this._formBuilder.group({
|
return this._formBuilder.group({
|
||||||
//insurance_type: ['', Validators.compose([Validators.required])],
|
//insurance_type: ['', Validators.compose([Validators.required])],
|
||||||
premium_paid: ['', Validators.compose([Validators.required])],
|
premium_paid: ['', Validators.compose([])],
|
||||||
frequency_mode: ['', Validators.compose([Validators.required])],
|
frequency_mode: ['', Validators.compose([])],
|
||||||
sum_assured: ['', Validators.compose([Validators.required])],
|
sum_assured: ['', Validators.compose([])],
|
||||||
members_coverd: ['', Validators.compose([Validators.required])]
|
members_coverd: ['', Validators.compose([])]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
loadInvestDescription() {
|
loadInvestDescription() {
|
||||||
return this._formBuilder.group({
|
return this._formBuilder.group({
|
||||||
investments_type: ['', Validators.compose([Validators.required])],
|
investments_type: ['', Validators.compose([])],
|
||||||
other_investments_type:[''],
|
other_investments_type:[''],
|
||||||
amount_of_invest: ['', Validators.compose([Validators.required])],
|
amount_of_invest: ['', Validators.compose([])],
|
||||||
bank_name: ['', Validators.compose([Validators.required])]
|
bank_name: ['', Validators.compose([])]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
load_Four_Weeler() {
|
load_Four_Weeler() {
|
||||||
return this._formBuilder.group({
|
return this._formBuilder.group({
|
||||||
manufacturer_model_four_weeler: ['', Validators.compose([Validators.required])]
|
manufacturer_model_four_weeler: ['', Validators.compose([])]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user