|
40 | 40 | <mat-option value="createdDate">{{ 'labels.inputs.Creation Date' | translate }}</mat-option> |
41 | 41 | <mat-option value="disbursalDate">{{ 'labels.inputs.Disbursement Date' | translate }}</mat-option> |
42 | 42 | </mat-select> |
| 43 | + <mat-error *ngIf="fundMappingForm.controls.loanDateOption.hasError('required')"> |
| 44 | + {{ 'labels.inputs.Date Type' | translate }} {{ 'labels.commons.is' | translate }} |
| 45 | + <strong>{{ 'labels.commons.required' | translate }}</strong> |
| 46 | + </mat-error> |
43 | 47 | </mat-form-field> |
44 | 48 |
|
45 | 49 | <mat-form-field class="flex-31" (click)="fromDatePicker.open()"> |
|
51 | 55 | [matDatepicker]="fromDatePicker" |
52 | 56 | formControlName="loanFromDate" |
53 | 57 | required |
| 58 | + placeholder="{{ 'labels.inputs.From Date' | translate }}" |
54 | 59 | /> |
55 | 60 | <mat-datepicker-toggle matSuffix [for]="fromDatePicker"></mat-datepicker-toggle> |
56 | 61 | <mat-datepicker #fromDatePicker></mat-datepicker> |
|
69 | 74 | [matDatepicker]="toDatePicker" |
70 | 75 | formControlName="loanToDate" |
71 | 76 | required |
| 77 | + placeholder="{{ 'labels.inputs.To Date' | translate }}" |
72 | 78 | /> |
73 | 79 | <mat-datepicker-toggle matSuffix [for]="toDatePicker"></mat-datepicker-toggle> |
74 | 80 | <mat-datepicker #toDatePicker></mat-datepicker> |
|
108 | 114 |
|
109 | 115 | <mat-form-field *ngIf="fundMappingForm.contains('minOutStandingAmountPercentage')" class="flex-31"> |
110 | 116 | <mat-label>{{ 'labels.inputs.Minimum Value' | translate }}</mat-label> |
111 | | - <input type="number" matInput required formControlName="minOutStandingAmountPercentage" /> |
| 117 | + <input |
| 118 | + type="number" |
| 119 | + matInput |
| 120 | + required |
| 121 | + formControlName="minOutStandingAmountPercentage" |
| 122 | + placeholder="{{ 'labels.inputs.Minimum Value' | translate }}" |
| 123 | + /> |
112 | 124 | <mat-error *ngIf="fundMappingForm.controls.minOutStandingAmountPercentage.hasError('required')"> |
113 | 125 | {{ 'labels.inputs.Minimum Value' | translate }} {{ 'labels.commons.is' | translate }} |
114 | 126 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
117 | 129 |
|
118 | 130 | <mat-form-field *ngIf="fundMappingForm.contains('outStandingAmountPercentage')" class="flex-31"> |
119 | 131 | <mat-label>{{ 'labels.inputs.Comparison Value' | translate }}</mat-label> |
120 | | - <input type="number" matInput required formControlName="outStandingAmountPercentage" /> |
| 132 | + <input |
| 133 | + type="number" |
| 134 | + matInput |
| 135 | + required |
| 136 | + formControlName="outStandingAmountPercentage" |
| 137 | + placeholder="{{ 'labels.inputs.Comparison Value' | translate }}" |
| 138 | + /> |
121 | 139 | <mat-error *ngIf="fundMappingForm.controls.outStandingAmountPercentage.hasError('required')"> |
122 | 140 | {{ 'labels.inputs.Comparison Value' | translate }} {{ 'labels.commons.is' | translate }} |
123 | 141 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
126 | 144 |
|
127 | 145 | <mat-form-field *ngIf="fundMappingForm.contains('maxOutStandingAmountPercentage')" class="flex-31"> |
128 | 146 | <mat-label>{{ 'labels.inputs.Maximum Value' | translate }}</mat-label> |
129 | | - <input type="number" matInput required formControlName="maxOutStandingAmountPercentage" /> |
| 147 | + <input |
| 148 | + type="number" |
| 149 | + matInput |
| 150 | + required |
| 151 | + formControlName="maxOutStandingAmountPercentage" |
| 152 | + placeholder="{{ 'labels.inputs.Maximum Value' | translate }}" |
| 153 | + /> |
130 | 154 | <mat-error *ngIf="fundMappingForm.controls.maxOutStandingAmountPercentage.hasError('required')"> |
131 | 155 | {{ 'labels.inputs.Maximum Value' | translate }} {{ 'labels.commons.is' | translate }} |
132 | 156 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
160 | 184 |
|
161 | 185 | <mat-form-field *ngIf="fundMappingForm.contains('minOutstandingAmount')" class="flex-31"> |
162 | 186 | <mat-label>{{ 'labels.inputs.Minimum Value' | translate }}</mat-label> |
163 | | - <input type="number" matInput required formControlName="minOutstandingAmount" /> |
| 187 | + <input |
| 188 | + type="number" |
| 189 | + matInput |
| 190 | + required |
| 191 | + formControlName="minOutstandingAmount" |
| 192 | + placeholder="{{ 'labels.inputs.Minimum Value' | translate }}" |
| 193 | + /> |
164 | 194 | <mat-error *ngIf="fundMappingForm.controls.minOutstandingAmount.hasError('required')"> |
165 | 195 | {{ 'labels.inputs.Minimum Value' | translate }} {{ 'labels.commons.is' | translate }} |
166 | 196 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
169 | 199 |
|
170 | 200 | <mat-form-field *ngIf="fundMappingForm.contains('outstandingAmount')" class="flex-31"> |
171 | 201 | <mat-label>{{ 'labels.inputs.Comparison Value' | translate }}</mat-label> |
172 | | - <input type="number" matInput required formControlName="outstandingAmount" /> |
| 202 | + <input |
| 203 | + type="number" |
| 204 | + matInput |
| 205 | + required |
| 206 | + formControlName="outstandingAmount" |
| 207 | + placeholder="{{ 'labels.inputs.Comparison Value' | translate }}" |
| 208 | + /> |
173 | 209 | <mat-error *ngIf="fundMappingForm.controls.outstandingAmount.hasError('required')"> |
174 | 210 | {{ 'labels.inputs.Comparison Value' | translate }} {{ 'labels.commons.is' | translate }} |
175 | 211 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
178 | 214 |
|
179 | 215 | <mat-form-field *ngIf="fundMappingForm.contains('maxOutstandingAmount')" class="flex-31"> |
180 | 216 | <mat-label>{{ 'labels.inputs.Maximum Value' | translate }}</mat-label> |
181 | | - <input type="number" matInput required formControlName="maxOutstandingAmount" /> |
| 217 | + <input |
| 218 | + type="number" |
| 219 | + matInput |
| 220 | + required |
| 221 | + formControlName="maxOutstandingAmount" |
| 222 | + placeholder="{{ 'labels.inputs.Maximum Value' | translate }}" |
| 223 | + /> |
182 | 224 | <mat-error *ngIf="fundMappingForm.controls.maxOutstandingAmount.hasError('required')"> |
183 | 225 | {{ 'labels.inputs.Maximum Value' | translate }} {{ 'labels.commons.is' | translate }} |
184 | 226 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
190 | 232 |
|
191 | 233 | <mat-card-actions class="layout-row align-center gap-5px responsive-column"> |
192 | 234 | <button type="button" mat-raised-button [routerLink]="['../']">{{ 'labels.buttons.Cancel' | translate }}</button> |
193 | | - <button mat-raised-button color="primary" [disabled]="!fundMappingForm.valid"> |
| 235 | + <button mat-raised-button color="primary" type="submit" [disabled]="!fundMappingForm.valid"> |
194 | 236 | <fa-icon icon="search"></fa-icon> {{ 'labels.buttons.Summary' | translate }} |
195 | 237 | </button> |
196 | 238 | </mat-card-actions> |
|
0 commit comments