feat:Unificaction of radhathakare's PR (#1879)

* feat:Clients Translate Module

* feat: Collections Translate Module

* feat:Loan Translate Module

* feat:Search Translate Module

* feat English Json File

---------

Co-authored-by: radhathakare <radhathakare322@gmail.com>
This commit is contained in:
Francisco Cuandon
2023-10-18 10:50:03 -06:00
committed by GitHub
co-authored by radhathakare
parent 3e1067bfc6
commit d92f6c1c5e
111 changed files with 1502 additions and 1427 deletions
@@ -1,44 +1,44 @@
<h1 mat-dialog-title>Add Loan Collateral</h1>
<h1 mat-dialog-title>{{"labels.heading.Add Loan Collateral" |translate}}</h1>
<div mat-dialog-content [formGroup]="addCollateralForm" fxLayout="column">
<mat-form-field>
<mat-label>Collateral</mat-label>
<mat-label>{{"labels.inputs.Collateral" |translate}}</mat-label>
<mat-select formControlName="collateral" required>
<mat-option *ngFor="let collateralType of collateralTypeData" [value]="collateralType" >
{{ collateralType.name }}
</mat-option>
</mat-select>
<mat-error>
Collateral is <strong>required</strong>
{{"labels.inputs.Collateral" |translate}} {{ "labels.commons.is" |translate}} <strong>{{ "labels.commons.required" |translate}}</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Quantity</mat-label>
<mat-label>{{"labels.inputs.Quantity" |translate}}</mat-label>
<input type="number" [max]="maxQuantity" [min]="0" matInput formControlName="quantity" required>
<mat-error *ngIf="addCollateralForm.controls.quantity.hasError('required')">
Quantity is <strong>required</strong>
{{"labels.inputs.Quantity" |translate}} {{ "labels.commons.is" |translate}} <strong>{{ "labels.commons.required" |translate}}</strong>
</mat-error>
<mat-error *ngIf="addCollateralForm.controls.quantity.hasError('max')">
Quantity can not be more than <strong>{{ maxQuantity }}</strong>
{{"labels.inputs.Quantity can not be more than" |translate}} <strong>{{ maxQuantity }}</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Total Value</mat-label>
<mat-label>{{"labels.inputs.Total Value" |translate}}</mat-label>
<input type="text" matInput formControlName="totalValue" [disabled]="true">
</mat-form-field>
<mat-form-field>
<mat-label>Total Collateral Value</mat-label>
<mat-label>{{"labels.inputs.Total Collateral Value" |translate}}</mat-label>
<input type="text" matInput formControlName="totalCollateralValue" [disabled]="true">
</mat-form-field>
</div>
<mat-dialog-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
<button mat-raised-button mat-dialog-close> Cancel </button>
<button mat-raised-button mat-dialog-close> {{"labels.buttons.Cancel" |translate}} </button>
<button mat-raised-button color="primary" [mat-dialog-close]="{ data: addCollateralForm }"
[disabled]="!addCollateralForm.valid || addCollateralForm.pristine">{{ layout.addButtonText }}</button>
</mat-dialog-actions>
@@ -1,37 +1,37 @@
<h1 mat-dialog-title>Guarantor Detail</h1>
<h1 mat-dialog-title>{{"labels.heading.Guarantor Detail" |translate}}</h1>
<div mat-dialog-content fxLayout="column">
<div fxLayout="row wrap" fxLayout.lt-md="column">
<div fxFlexFill>
<span fxFlex="50%">First Name:</span>
<span fxFlex="50%">{{"labels.inputs.First Name" |translate}}:</span>
<span fxFlex="50%">{{ data.guarantorData.firstname }}</span>
</div>
<div fxFlexFill>
<span fxFlex="50%">Last Name:</span>
<span fxFlex="50%">{{"labels.inputs.Last Name" |translate}}:</span>
<span fxFlex="50%">{{ data.guarantorData.lastname }}</span>
</div>
<div fxFlexFill>
<span fxFlex="50%">Relationship:</span>
<span fxFlex="50%">{{"labels.inputs.Relationship" |translate}}:</span>
<span fxFlex="50%">{{ data.guarantorData.clientRelationshipType.name }}</span>
</div>
<div fxFlexFill>
<span fxFlex="50%">Guarantor Type:</span>
<span fxFlex="50%">{{"labels.inputs.Guarantor Type" |translate}}:</span>
<span fxFlex="50%">{{ data.guarantorData.guarantorType.value }}</span>
</div>
<div fxFlexFill>
<span fxFlex="50%">Status:</span>
<span fxFlex="50%">{{"labels.inputs.Status" |translate}}:</span>
<span fxFlex="50%">
<span *ngIf="data.guarantorData.status">
Active
{{"labels.inputs.Active" |translate}}
</span>
<span *ngIf="!data.guarantorData.status">
Deleted
{{"labels.inputs.Deleted" |translate}}
</span></span>
</div>
@@ -40,5 +40,5 @@
</div>
<mat-dialog-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
<button mat-raised-button mat-dialog-close> Cancel </button>
<button mat-raised-button mat-dialog-close> {{"labels.buttons.Cancel" |translate}} </button>
</mat-dialog-actions>