From 23d664a48b41a2cd0eeadd026bf6a5f5cf8287a3 Mon Sep 17 00:00:00 2001 From: Kristan Ntavidi Date: Fri, 9 Apr 2021 17:05:01 +0300 Subject: [PATCH] Admin Template Editor: table styling. --- .../editor/animations/animations.ts | 11 +++ .../dataset-profile-editor.component.html | 64 ++++++++---- .../dataset-profile-editor.component.scss | 27 +++-- .../dataset-profile-editor.component.ts | 98 ++++++++++++++++++- 4 files changed, 172 insertions(+), 28 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/animations/animations.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/animations/animations.ts index c62b30393..c30863a32 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/animations/animations.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/animations/animations.ts @@ -60,5 +60,16 @@ export const GENERAL_ANIMATIONS = [ state('updated',style({opacity:0})), transition("*=>updated", animate('2s 1s ease-out')) + ]), + trigger('add-new-user-field', [ + state('untriggered', style({ + transform:'translateX(120%)' + })), + state('triggered', style({ + transform:'translateX(0)' + })), + transition('untriggered => triggered', animate('400ms ease')), + transition('triggered => untriggered', animate('400ms 100ms ease')) ]) + ] \ No newline at end of file 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 64ec936d0..89c8a2420 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 @@ -167,28 +167,56 @@
1.4 {{'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-USERS'| translate}}
-
- - - - - - - - - - +
{{'USERS.LISTING.NAME' | translate}}{{'USERS.LISTING.EMAIL' | translate}}
{{user.name}}{{user.email}} - +
+ + + + + + + + + + + -
{{'USERS.LISTING.NAME' | translate}}{{'USERS.LISTING.EMAIL' | translate}}
{{user.name}}{{user.email}} + +
-
-
- - -
+
+
+ +
+
+
+ + +
+ + + +
+ + +
+
+ +
+
+