45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
<div class="container">
|
|
<mat-card>
|
|
<form [formGroup]="clientCollateralForm" (ngSubmit)="submit()">
|
|
<mat-card-content>
|
|
<div class="layout-column">
|
|
<div class="layout-column">
|
|
<mat-form-field>
|
|
<mat-label>{{ 'labels.inputs.name' | translate }}</mat-label>
|
|
<input matInput required formControlName="name" />
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>{{ 'labels.inputs.Quantity' | translate }}</mat-label>
|
|
<input matInput required formControlName="quantity" />
|
|
<mat-error *ngIf="clientCollateralForm.controls.quantity.hasError('required')">
|
|
{{ 'labels.inputs.Quantity' | translate }} {{ 'labels.commons.is' | translate }}
|
|
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>{{ 'labels.inputs.Total' | translate }}</mat-label>
|
|
<input matInput required formControlName="total" />
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>{{ 'labels.inputs.Total Collateral Value' | translate }}</mat-label>
|
|
<input matInput required formControlName="totalCollateral" />
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions class="layout-row layout-xs-column layout-align-center gap-5px">
|
|
<button type="button" mat-raised-button [routerLink]="['../../']">
|
|
{{ 'labels.buttons.Cancel' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" [disabled]="!clientCollateralForm.valid">
|
|
{{ 'labels.buttons.Submit' | translate }}
|
|
</button>
|
|
</mat-card-actions>
|
|
</form>
|
|
</mat-card>
|
|
</div>
|