|
1 | | -<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" |
2 | | - [class.adf-invalid]="!field.isValid && isTouched()" [class.adf-readonly]="field.readOnly" |
3 | | - [class.adf-left-label-input-container]="field.leftLabels"> |
4 | | - <div *ngIf="field.leftLabels"> |
5 | | - <label class="adf-label adf-left-label" [attr.for]="field.id">{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span></label> |
6 | | - </div> |
7 | | - <div> |
8 | | - <mat-form-field class="adf-amount-widget__input" [hideRequiredMarker]="true"> |
9 | | - <label class="adf-label" *ngIf="!field.leftLabels" [attr.for]="field.id">{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span></label> |
10 | | - <span matTextPrefix class="adf-amount-widget__prefix-spacing">{{ currency }} </span> |
11 | | - <input matInput |
12 | | - [title]="field.tooltip" |
13 | | - class="adf-input" type="text" [id]="field.id" [required]="isRequired()" |
14 | | - [placeholder]="placeholder" [value]="field.value" [(ngModel)]="field.value" |
15 | | - (ngModelChange)="onFieldChanged(field)" [disabled]="field.readOnly" |
16 | | - (blur)="markAsTouched()"> |
17 | | - </mat-form-field> |
18 | | - <error-widget [error]="field.validationSummary" /> |
19 | | - <error-widget *ngIf="isInvalidFieldRequired() && isTouched()" |
20 | | - required="{{ 'FORM.FIELD.REQUIRED' | translate }}" /> |
21 | | - </div> |
| 1 | +<div |
| 2 | + class="adf-amount-widget__container adf-amount-widget {{field.className}}" |
| 3 | + [class.adf-invalid]="!field.isValid && isTouched()" |
| 4 | + [class.adf-readonly]="field.readOnly" |
| 5 | + [class.adf-left-label-input-container]="field.leftLabels" |
| 6 | +> |
| 7 | + <div *ngIf="field.leftLabels"> |
| 8 | + <label class="adf-label adf-left-label" [attr.for]="field.id" |
| 9 | + >{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span></label |
| 10 | + > |
| 11 | + </div> |
| 12 | + <div> |
| 13 | + <mat-form-field class="adf-amount-widget__input" [hideRequiredMarker]="true"> |
| 14 | + <label class="adf-label" *ngIf="!field.leftLabels" [attr.for]="field.id" |
| 15 | + >{{field.name | translate }}<span class="adf-asterisk" [style.visibility]="isRequired() ? 'visible' : 'hidden'">*</span></label |
| 16 | + > |
| 17 | + <span matTextPrefix class="adf-amount-widget__prefix-spacing">{{ currency }} </span> |
| 18 | + <input |
| 19 | + matInput |
| 20 | + [title]="field.tooltip" |
| 21 | + class="adf-input" |
| 22 | + type="text" |
| 23 | + [id]="field.id" |
| 24 | + [required]="isRequired()" |
| 25 | + [placeholder]="placeholder" |
| 26 | + [value]="field.value" |
| 27 | + [(ngModel)]="field.value" |
| 28 | + (ngModelChange)="onFieldChanged(field)" |
| 29 | + [disabled]="field.readOnly" |
| 30 | + (blur)="markAsTouched()" |
| 31 | + /> |
| 32 | + </mat-form-field> |
| 33 | + <error-widget [error]="field.validationSummary" /> |
| 34 | + <error-widget *ngIf="isInvalidFieldRequired() && isTouched()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}" /> |
| 35 | + </div> |
22 | 36 | </div> |
0 commit comments