Skip to content

Commit 07a4416

Browse files
Merge pull request #2825 from JaySoni1/WEB-439-title-show-validation-error-messages-beside-name-and-description-fields-in-create-fixed-deposit-product-form
WEB-439 Show-validation-error-messages-beside-name-and-description-fields-in-create-fixed-deposit-product-form
2 parents 24d9e0e + f632d8a commit 07a4416

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)