Skip to content

Commit f632d8a

Browse files
committed
WEB-439 Title: Show validation error messages beside Name and Description fields in Create Fixed Deposit Product form
1 parent 753b623 commit f632d8a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/products/fixed-deposit-products/fixed-deposit-product-stepper/fixed-deposit-product-interest-rate-chart-step/fixed-deposit-product-interest-rate-chart-step.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ <h4 class="mat-h3 flex-83">
3636
<mat-form-field class="flex-28 m-r-5">
3737
<mat-label>{{ 'labels.inputs.Name' | translate }}</mat-label>
3838
<input matInput formControlName="name" required />
39+
<mat-error *ngIf="chart.get('name')?.touched && chart.get('name')?.hasError('required')">
40+
{{ 'labels.inputs.Name' | translate }} {{ 'labels.commons.is' | translate }}
41+
<strong>{{ 'labels.commons.required' | translate }}</strong>
42+
</mat-error>
3943
</mat-form-field>
4044

4145
<mat-form-field class="flex-70">
4246
<mat-label>{{ 'labels.inputs.Description' | translate }}</mat-label>
4347
<textarea matInput formControlName="description" required></textarea>
48+
<mat-error *ngIf="chart.get('description')?.touched && chart.get('description')?.hasError('required')">
49+
{{ 'labels.inputs.Description' | translate }} {{ 'labels.commons.is' | translate }}
50+
<strong>{{ 'labels.commons.required' | translate }}</strong>
51+
</mat-error>
4452
</mat-form-field>
4553

4654
<mat-form-field class="flex-48 m-r-5" (click)="validFromDatePicker.open()">

0 commit comments

Comments
 (0)