From 4e791e78affce9ca7840eba5f082efd5658bd081 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 11 Apr 2024 17:46:45 +0300 Subject: [PATCH] ui fixes (description template editor) --- ...late-editor-composite-field.component.html | 41 +++-- ...ption-template-editor-field.component.html | 5 +- ...ption-template-editor-field.component.scss | 6 +- ...late-editor-visibility-rule.component.html | 74 ++++---- .../form-field-set.component.html | 160 +++++++++--------- 5 files changed, 155 insertions(+), 131 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html index 2fddd0540..9e96f7b79 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html @@ -83,25 +83,34 @@ -
-
- {{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.FIELD.PREVIEW' | translate}} - - - {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.STATUS.PREVIEW-UPDATED' | translate}} - - - {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.STATUS.CALCULATING-PREVIEW' | translate}} - - -
-
-
-
- +
+
+
+
+
+
+ {{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.FIELD.PREVIEW' | translate}} +
+
+ + + {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.STATUS.PREVIEW-UPDATED' | translate}} + + + {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.STATUS.CALCULATING-PREVIEW' | translate}} + + +
+
+
+
+ +
+
+
diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html index 8fed87433..e3efef68e 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html @@ -132,9 +132,10 @@ {{form.get('schematics').getError('backendError').message}} - {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.EXPORT' | translate}} +
+ {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.EXPORT' | translate}} {{form.get('includeInExport').getError('backendError').message}} - +
diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.scss b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.scss index 7dfc9b224..7da3a1c73 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.scss +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.scss @@ -63,4 +63,8 @@ li.list-inline-item{ font-weight: 400; font-size: 0.8em; } -} \ No newline at end of file +} + +::ng-deep .mdc-label { + margin: 0; +} diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/visibility-rule/description-template-editor-visibility-rule.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/visibility-rule/description-template-editor-visibility-rule.component.html index 193137eee..723f305be 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/visibility-rule/description-template-editor-visibility-rule.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/visibility-rule/description-template-editor-visibility-rule.component.html @@ -1,42 +1,50 @@ -
- {{i + 1}} +
+
{{i + 1}}
- - - +
+ +
+
+ +
+
+ +
- - {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.RULE.FIELDS.RULE-THEN'| translate}} - - - - - - {{option.label? option.label:'<'+ ('DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.UNTITLED' | translate) + '>' }}
- - {{option.id}} - -
-
- - - - - {{option.label? option.label:'<'+ ('DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.UNTITLED' | translate) + '>' }}
- - {{option.id}} - -
-
+
+ + {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.RULE.FIELDS.RULE-THEN'| translate}} + + + + + + {{option.label? option.label:'<'+ ('DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.UNTITLED' | translate) + '>' }}
+ + {{option.id}} + +
+
+ + + + + {{option.label? option.label:'<'+ ('DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.UNTITLED' | translate) + '>' }}
+ + {{option.id}} + +
+
-
- {{ruleFormGroup.get('target').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} -
+ + {{ruleFormGroup.get('target').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
-
diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field-set/form-field-set.component.html b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field-set/form-field-set.component.html index 6ba49efd2..fe4477875 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field-set/form-field-set.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field-set/form-field-set.component.html @@ -1,87 +1,89 @@ -
-
-
-
- -
-
- -
-
-
-
-
-
-
-
- -
-
{{field.label}}
-
- -
-
+
+
+
+
+
+ +
+
+
-
- +
+
+
+
+
+
+ +
+
{{field.label}}
+
+ +
+
+
+
+
+ +
+
+
+ + + {{fieldSet.multiplicity.placeholder}} + {{('DESCRIPTION-EDITOR.ACTIONS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldSet.multiplicity.tableView?'-TABLEVIEW':'')) | translate}} +
-
- - - {{fieldSet.multiplicity.placeholder}} - {{('DESCRIPTION-EDITOR.ACTIONS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldSet.multiplicity.tableView?'-TABLEVIEW':'')) | translate}} - -
-
-
- - - - - - - - -
{{field.data?.label}}
- - {{fieldSetItemPropertiesControl.get('fields').get(field.id).get('value').getRawValue()}} - - - - +
+ + + + + + + + + + + + + + - - - - - -
{{field.data?.label}}
+ + {{fieldSetItemPropertiesControl.get('fields').get(field.id).get('value').getRawValue()}} + + + + +
+ + + {{fieldSet.multiplicity.placeholder}} + {{('DESCRIPTION-EDITOR.ACTIONS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldSet.multiplicity.tableView?'-TABLEVIEW':'')) | translate}} +
- - - {{fieldSet.multiplicity.placeholder}} - {{('DESCRIPTION-EDITOR.ACTIONS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldSet.multiplicity.tableView?'-TABLEVIEW':'')) | translate}} - -
-
- - -
-
- +
+
+
+ +
+
+ +