WEB-439 Title: Show validation error messages beside Name and Description fields in Create Fixed Deposit Product form

This commit is contained in:
Soni Jay
2025-11-28 03:56:14 +05:30
parent 753b623eb1
commit f632d8ad45
@@ -36,11 +36,19 @@
<mat-form-field class="flex-28 m-r-5">
<mat-label>{{ 'labels.inputs.Name' | translate }}</mat-label>
<input matInput formControlName="name" required />
<mat-error *ngIf="chart.get('name')?.touched && chart.get('name')?.hasError('required')">
{{ 'labels.inputs.Name' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
</mat-form-field>
<mat-form-field class="flex-70">
<mat-label>{{ 'labels.inputs.Description' | translate }}</mat-label>
<textarea matInput formControlName="description" required></textarea>
<mat-error *ngIf="chart.get('description')?.touched && chart.get('description')?.hasError('required')">
{{ 'labels.inputs.Description' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
</mat-form-field>
<mat-form-field class="flex-48 m-r-5" (click)="validFromDatePicker.open()">