From a5061759b812fc8d99d35bcbc35584490ea6bb33 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 20 Apr 2022 18:25:55 +0300 Subject: [PATCH] #7665: Save and Previous buttons updated on the Dataset Template (Admin). 1. dmp-editor.component.html & dmp-clone.component.html & dataset-wizard.component.html: On next button, moved chevron_right icon to the right side of the text. 2. dataset-profile-editor.component.scss: a. Removed margin-top from .dataset-profile-editor. b. Updated position and styling of .scroll-on-top. c. Added .floating-btn and .progress-min-height. 3. dataset-profile-editor.component.ts: a. Set showScrollOnTopButton default value to true and comment intersection stepperNavigationObserver (because title is sticky now and always visible). b. In method "onSubmit()" added parameter close:boolean=false, to check if the router will navigate to "/dataset-profiles" or not (button "save and continue" added). 4. dataset-profile-editor.component.html: a. Renamed "Back" button to "Close" and use DATASET-WIZARD.ACTIONS.CLOSE. b. Moved "Close", "Save"/"Update" and "Finalize" buttons aligned with title on the top right. c. Made title with aligned buttons sticky to top with stepper. d. Moved buttons "Previous"/"Next" on the down right of viewport (floating buttons). e. Moved scroll button and update it. f. Updated alignment of main content when there is no sidebar on the left. 5. i18n/: In language files added "DATASET-WIZARD.ACTIONS.CLOSE" and updated "USER-PROFILE.MERGING-EMAILS-DIALOG.TITLE" (#7662). --- .../dataset-profile-editor.component.html | 273 +++++++++--------- .../dataset-profile-editor.component.scss | 28 +- .../dataset-profile-editor.component.ts | 74 ++--- .../dataset-wizard.component.html | 4 +- .../app/ui/dmp/clone/dmp-clone.component.html | 2 +- .../ui/dmp/editor/dmp-editor.component.html | 2 +- dmp-frontend/src/assets/i18n/de.json | 3 +- dmp-frontend/src/assets/i18n/en.json | 3 +- dmp-frontend/src/assets/i18n/es.json | 3 +- dmp-frontend/src/assets/i18n/gr.json | 3 +- dmp-frontend/src/assets/i18n/hr.json | 3 +- dmp-frontend/src/assets/i18n/pt.json | 3 +- dmp-frontend/src/assets/i18n/sk.json | 3 +- dmp-frontend/src/assets/i18n/sr.json | 3 +- dmp-frontend/src/assets/i18n/tr.json | 3 +- 15 files changed, 227 insertions(+), 183 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html index ce01fa401..fb1665453 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html @@ -7,122 +7,98 @@ +
+
+
-
-
+
+

{{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE' | translate}}

+

+ {{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-CLONE' | translate}} + {{form.get('label').value}} +

+

+ {{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-VERSION' | translate}} + {{form.get('label').value}} +

-
-

{{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE' | translate}}

-

- {{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-CLONE' | translate}} - {{form.get('label').value}} -

-

- {{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-VERSION' | translate}} - {{form.get('label').value}} -

+

{{form.get('label').value}}

+
+ -

{{form.get('label').value}}

+ +
- -
-
-
+
- -
-
-
-
-
-
- - - done - - - {{idx+1}} - - {{step.label}} - + +
+
+ + + + + + +
+
+
+
+ + + done + + + {{idx+1}} + + {{step.label}} + +
+
+ + + + + + + +
- -
- - - - - - - - - -
-
-
- -
@@ -134,12 +110,7 @@ -
-
- - - -
+
1.1 {{'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-NAME'| translate}} *
@@ -267,10 +238,6 @@ (dataNeedsRefresh)="onDataNeedsRefresh($event)" [colorizeInvalid]="colorizeInvalid"> - - - -
@@ -281,7 +248,7 @@
-
+
@@ -370,17 +337,13 @@ -
-
- - - - -
+
+
+
@@ -441,13 +404,37 @@ --> -
- -
+ + + + + + + + + + + arrow_upward + +
SCROLL
+
+ + +
+ + +
+