Commit 822cbbed authored by Florent Poittevin's avatar Florent Poittevin
Browse files

feat: required field in red when empty

parent aadaa93f
<form [formGroup]="form">
<mat-form-field *ngIf="getFormControl(formDefinition.firstName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.firstName | translate }}</mat-label>
......@@ -14,6 +15,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.lastName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.lastName | translate }}</mat-label>
......@@ -27,6 +29,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.homeOrganization) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.homeOrganization | translate }}</mat-label>
......@@ -40,6 +43,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.email) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.email | translate }}</mat-label>
......@@ -53,6 +57,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.applicationRole) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.role | translate }}</mat-label>
......
......@@ -48,6 +48,7 @@
<mat-form-field (click)="closingDateDatepicker.open()"
*ngIf="getFormControl(formDefinition.expiration) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.expiration | translate}}</mat-label>
......
......@@ -10,6 +10,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......@@ -23,6 +24,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.destinationServer) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.destinationServer | translate }}</mat-label>
......@@ -36,6 +38,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.subFolder) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.subFolder | translate }}</mat-label>
......@@ -53,6 +56,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.type) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.type | translate}}</mat-label>
......
......@@ -11,6 +11,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.acronym) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.acronym | translate}}</mat-label>
......@@ -26,6 +27,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
......@@ -40,6 +42,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate}}</mat-label>
......@@ -56,7 +59,7 @@
<ng-template #rightTemplate>
<solidify-multi-select (navigate)="navigateToOrgUnit($event)"
[formControl]="form.get(formDefinition.organizationalUnits)"
[formControl]="formValidationHelper.getFormControl(form, formDefinition.organizationalUnits)"
[isWithLink]="true"
[labelKey]="'name'"
[list]="listOrgUnits"
......
......@@ -11,6 +11,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.indexName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.indexName | translate}}</mat-label>
......@@ -24,6 +25,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.alias) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.alias | translate}}</mat-label>
......@@ -37,6 +39,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.field) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.field | translate}}</mat-label>
......@@ -51,6 +54,7 @@
<ng-container *ngFor="let language of languages">
<mat-form-field *ngIf="getFormControl(language.resId) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{language.resId}}</mat-label>
......@@ -76,6 +80,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.facetMinCount) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.facetMinCount | translate}}</mat-label>
......@@ -91,6 +96,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.facetLimit) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.facetLimit | translate}}</mat-label>
......@@ -106,6 +112,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.facetDefaultVisibleValues) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.facetDefaultVisibleValues | translate}}</mat-label>
......@@ -120,6 +127,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.facetOrder) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.facetOrder | translate}}</mat-label>
......
......@@ -20,6 +20,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......@@ -35,6 +36,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate }}</mat-label>
......
......@@ -3,6 +3,7 @@
>
<mat-form-field *ngIf="getFormControl(formDefinition.resId) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.language | translate}}</mat-label>
......@@ -20,6 +21,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.resId) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.identifier | translate }}</mat-label>
......@@ -31,6 +33,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.code) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.code | translate }}</mat-label>
......
......@@ -9,6 +9,7 @@
<ng-template #centerTemplate>
<mat-form-field *ngIf="getFormControl(formDefinition.title) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.title | translate}}</mat-label>
......@@ -22,6 +23,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.openLicenseId) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.openLicenseId | translate}}</mat-label>
......@@ -41,6 +43,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.odConformance) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.odConformance | translate}}</mat-label>
......@@ -59,6 +62,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.osdConformance) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.osdConformance | translate}}</mat-label>
......@@ -77,6 +81,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.maintainer) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.maintainer | translate}}</mat-label>
......@@ -94,6 +99,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.family) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.family | translate}}</mat-label>
......@@ -112,6 +118,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.status) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.status | translate}}</mat-label>
......
......@@ -10,6 +10,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
......@@ -26,6 +27,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate}}</mat-label>
......@@ -46,6 +48,7 @@
<ng-container *ngIf="getFormControl(formDefinition.metadataSchema) as fd">
<mat-form-field *ngIf="!readonly"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{'admin.metadataType.form.metadataSchema' | translate}}</mat-label>
......@@ -92,6 +95,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.metadataFormat) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.format | translate}}</mat-label>
......@@ -110,6 +114,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.version) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.version | translate}}</mat-label>
......
......@@ -11,6 +11,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
......@@ -25,6 +26,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate}}</mat-label>
......@@ -38,6 +40,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.spec) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.spec | translate}}</mat-label>
......@@ -55,6 +58,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.query) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.query | translate}}</mat-label>
......
......@@ -5,6 +5,7 @@
>
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
solidifyTooltipOnEllipsis
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
<input [formControl]="fd"
......
......@@ -4,6 +4,7 @@
>
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
......@@ -17,6 +18,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate }}</mat-label>
......
......@@ -21,6 +21,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate}}</mat-label>
......@@ -95,6 +96,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.description) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.description | translate}}</mat-label>
......@@ -174,6 +176,7 @@
<mat-form-field (click)="openingDateDatepicker.open()"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.opening | translate}}</mat-label>
......@@ -191,6 +194,7 @@
<mat-form-field (click)="closingDateDatepicker.open()"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.closing | translate}}</mat-label>
......@@ -207,6 +211,7 @@
</mat-form-field>
<mat-form-field [appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
[matTooltipPosition]="'left'"
[matTooltipShowDelay]="TIME_BEFORE_DISPLAY_TOOLTIP"
[matTooltip]="'admin.organizationalUnit.form.researchDomainSource.tooltip' | translate"
......
......@@ -11,6 +11,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.firstName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.firstName | translate }}</mat-label>
......@@ -25,6 +26,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.lastName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.lastName | translate }}</mat-label>
......@@ -38,6 +40,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.orcid) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.orcid | translate }}</mat-label>
......
......@@ -12,6 +12,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......
......@@ -5,6 +5,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......@@ -18,6 +19,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.source) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.source | translate }}</mat-label>
......@@ -31,6 +33,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.code) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.code | translate }}</mat-label>
......@@ -45,6 +48,7 @@
<ng-container *ngFor="let language of languages">
<mat-form-field *ngIf="getFormControl(language.resId) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{language.resId}}</mat-label>
......
......@@ -10,6 +10,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......@@ -28,6 +29,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.level) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.level | translate }}</mat-label>
......
......@@ -11,6 +11,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.name) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.nameLabel | translate }}</mat-label>
......@@ -26,6 +27,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.timeToKeep) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.timeToKeep | translate }}</mat-label>
......
......@@ -21,6 +21,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.externalUid) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.externalUid | translate }}</mat-label>
......@@ -35,6 +36,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.firstName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.firstName | translate }}</mat-label>
......@@ -48,6 +50,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.lastName) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.lastName | translate }}</mat-label>
......@@ -61,6 +64,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.homeOrganization) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.homeOrganization | translate }}</mat-label>
......@@ -74,6 +78,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.email) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.email | translate }}</mat-label>
......@@ -91,6 +96,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.person) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.person | translate }}</mat-label>
......@@ -125,6 +131,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.applicationRole) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{labelTranslateEnum.role | translate }}</mat-label>
......@@ -144,6 +151,7 @@
<ng-container *ngIf="readonly">
<mat-form-field *ngIf="getFormControl(formDefinition.lastLoginTime) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{'admin.user.form.lastLoginTime' | translate }}</mat-label>
......@@ -157,6 +165,7 @@
<mat-form-field *ngIf="getFormControl(formDefinition.lastLoginIpAddress) as fd"
[appearance]="appearanceInputMaterial"
[class.mat-form-field-invalid]="formValidationHelper.displayInvalidWhenRequired(fd, displayEmptyRequiredFieldInError)"
solidifyTooltipOnEllipsis
>
<mat-label>{{'admin.user.form.lastLoginIpAddress' | translate }}</mat-label>
......