diff --git a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html index 355a6e925..f25e817fc 100644 --- a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html +++ b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.html @@ -78,28 +78,28 @@
-
{{'PLAN-EDITOR.FIELDS.TITLE' | translate}} *{{'GENERAL.VALIDATION.REQUIRED' | translate }}
+
{{'PLAN-EDITOR.FIELDS.TITLE' | translate}} - + {{formGroup.get('label').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
{{'PLAN-EDITOR.FIELDS.DESCRIPTION' | translate}}
+
- +
-
{{'PLAN-EDITOR.FIELDS.BLUEPRINT' | translate}} *{{'GENERAL.VALIDATION.REQUIRED' | translate }}
+ {{'PLAN-EDITOR.FIELDS.BLUEPRINT' | translate}} - +
@@ -201,174 +201,226 @@
-
-
-
{{i + 1}}.{{j + 1}} {{enumUtils.toPlanBlueprintSystemFieldTypeString(field.systemFieldType)}} -  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} + @if(field.category === planBlueprintSectionFieldCategoryEnum.System){ + @switch(field.systemFieldType){ + @case(planBlueprintSystemFieldTypeEnum.AccessRights){ +
+
+ +
+ +
+
+ + + + {{enumUtils.toPlanAccessTypeString(planAccessType)}} + + + {{formGroup.get('accessType').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ }@case(planBlueprintSystemFieldTypeEnum.Language){ +
+
+ +
+ +
+
+ + + + {{ lang.name }} + + + {{formGroup.get('language').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ }@case(planBlueprintSystemFieldTypeEnum.Description){ +
+
+ +
+ +
+
+ +
+ } + @case(planBlueprintSystemFieldTypeEnum.Title){ + +
+ + + + {{formGroup.get('label').getError('backendError').message}} + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ }@case(planBlueprintSystemFieldTypeEnum.Contact){ + +
+
+
+
+ {{contactIndex + 1}} + + drag_indicator + +
+
+
+
+ + {{'PLAN-EDITOR.FIELDS.FIRST-NAME' | translate}} + + {{contact.get('firstName').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+ + {{'PLAN-EDITOR.FIELDS.LAST-NAME' | translate}} + + {{contact.get('lastName').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+ + {{'PLAN-EDITOR.FIELDS.EMAIL' | translate}} + + {{contact.get('email').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+
+
+ +
+
+ +
+
+ {{formGroup.get('properties').get('contacts').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} +
+
+ +
+
+ }@case(planBlueprintSystemFieldTypeEnum.User){ + +
+ +
+ } + } + } + @if(field.category === planBlueprintSectionFieldCategoryEnum.ReferenceType){ + +
+ + + + + + +
+ } + @if(field.category === planBlueprintSectionFieldCategoryEnum.Extra){ + @switch(field.dataType){ + @case(planBlueprintExtraFieldDataTypeEnum.Text){ + +
+ + {{field.label}} + + {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('fieldValue').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ } + @case(planBlueprintExtraFieldDataTypeEnum.RichText){ +
+
+ +
+ +
+
+ +
+ }@case(planBlueprintExtraFieldDataTypeEnum.Date) { + +
+ + {{field.label}} + + + + {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('dateValue').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ }@case(planBlueprintExtraFieldDataTypeEnum.Number) { + +
+ + {{field.label}} + + {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('numberValue').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ } + } + } + + +
+
+
-
{{i + 1}}.{{j + 1}} {{field.referenceType.name}} -  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} -
-
{{i + 1}}.{{j + 1}} {{field.label}} -  *{{'GENERAL.VALIDATION.REQUIRED' | translate }} -
-
- + +
+ + @if(!isNew){ +
-
} -
- -
{{field.description}}
- -
-
-
- - - - {{formGroup.get('label').getError('backendError').message}} - - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - -
-
- - - - {{ lang.name }} - - - {{formGroup.get('language').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
-
-
-
- {{contactIndex + 1}} - - drag_indicator - -
-
-
-
- - {{'PLAN-EDITOR.FIELDS.FIRST-NAME' | translate}} - - {{contact.get('firstName').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - {{'PLAN-EDITOR.FIELDS.LAST-NAME' | translate}} - - {{contact.get('lastName').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - {{'PLAN-EDITOR.FIELDS.EMAIL' | translate}} - - {{contact.get('email').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
-
-
- -
-
- -
-
- {{formGroup.get('properties').get('contacts').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} -
-
- -
-
-
- - - - {{enumUtils.toPlanAccessTypeString(planAccessType)}} - - - {{formGroup.get('accessType').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
-
- -
-
-
-
- - - - - - -
-
-
- - {{field.label}} - - {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('fieldValue').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- -
-
- - {{field.label}} - - - - {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('dateValue').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - {{field.label}} - - {{formGroup.get('properties').get('planBlueprintValues').get(field.id).get('numberValue').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
-
+
{{field.description}}
+
@@ -377,10 +429,10 @@
-
{{'PLAN-EDITOR.FIELDS.DESCRIPTION-TEMPLATES' | translate}}
+ {{'PLAN-EDITOR.FIELDS.DESCRIPTION-TEMPLATES-HINT' | translate}} - + {{formGroup.get('descriptionTemplates').get(section.id).getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}} diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss index a4253350a..032f4cf17 100644 --- a/frontend/src/styles.scss +++ b/frontend/src/styles.scss @@ -555,9 +555,7 @@ button, .mdc-button, .mat-mdc-button, .mdc-button:has(.material-icons,mat-icon,[ } &.attach-file.mdc-button-disabled, &.attach-file.mdc-button-disabled:hover { - background-color: #ffffff; - border: 1px solid darkgray; - color: darkgrey !important; + opacity: 0.7; } }