From 0d9f6ec3c475789e338b4c58c8cd696a763bf4a3 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Fri, 22 Mar 2024 11:48:54 +0200 Subject: [PATCH] styling changes *dmp-description --- .../dmp-blueprint-editor.component.html | 147 +++++++++++------- .../dmp-blueprint-editor.component.scss | 24 +-- 2 files changed, 90 insertions(+), 81 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html index 90bd7d6f8..0b890f004 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html @@ -92,7 +92,7 @@
-
+
@@ -106,14 +106,14 @@
-
+
{{fieldIndex + 1}} drag_indicator
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.CATEGORY' | translate}} @@ -123,7 +123,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.SYSTEM-FIELD-TYPE' | translate}} @@ -133,7 +133,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.DATA-TYPE' | translate}} @@ -145,7 +145,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.REFERENCE-TYPE' | translate}} @@ -153,7 +153,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-LABEL' | translate}} @@ -161,7 +161,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-PLACEHOLDER' | translate}} @@ -169,7 +169,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-DESCRIPTION' | translate}} @@ -177,7 +177,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.SEMANTICS' | translate}} @@ -188,14 +188,14 @@
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-REQUIRED' | translate}} {{field.get('required').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
@@ -225,62 +225,93 @@
-
-
-
-
+
+
+
+ + +
+
+
+ {{descriptionTemplateIndex + 1}} + drag_indicator +
+
+ +
+
-
- - {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-LABEL' | translate}} - - {{descriptionTemplate.get('label').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MIN-MULTIPLICITY' | translate}} - - {{descriptionTemplate.get('minMultiplicity').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- - {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MAX-MULTIPLICITY' | translate}} - - {{descriptionTemplate.get('maxMultiplicity').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - -
-
- +
+ {{descriptionTemplateIndex + 1}} + drag_indicator +
+ +
+
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE' | translate}} + + {{descriptionTemplate.get('descriptionTemplateGroupId').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-LABEL' | translate}} + + {{descriptionTemplate.get('label').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MIN-MULTIPLICITY' | translate}} + + {{descriptionTemplate.get('minMultiplicity').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MAX-MULTIPLICITY' | translate}} + + {{descriptionTemplate.get('maxMultiplicity').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+
+
+
+
+ +
+
+
+ {{section.get('descriptionTemplates').getError('backendError').message}}
- {{section.get('descriptionTemplates').getError('backendError').message}}
-
- - {{'DMP-BLUEPRINT-EDITOR.FIELDS.PREFILLING-SOURCES' | translate}} - - {{section.get('prefillingSourcesIds').getError('backendError').message}} - +
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.PREFILLING-SOURCES' | translate}} + + {{section.get('prefillingSourcesIds').getError('backendError').message}} + +
+ diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss index c3fcf299d..ebd157447 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss @@ -135,12 +135,9 @@ } } +.description-fields-wrapper, .section-fields-wrapper { width: 100%; - margin-top: 1.0rem; - display: flex; - flex-wrap: wrap; // ?? - align-items: center; .section-options-vertical { display: none; @@ -159,27 +156,8 @@ } .section-options-vertical { - width: 100%; display: initial; } - - .section-field { - width: 100%; - max-width: initial; - } - } -} - -.description-fields-wrapper { - width: 100%; - margin-top: 1.0rem; - display: flex; - flex-wrap: wrap; // ?? - align-items: center; - - @media (max-width: 1470px) { - flex-direction: column; - align-items: flex-start; } }