diff --git a/dmp-frontend/src/app/core/common/enum/app-role.ts b/dmp-frontend/src/app/core/common/enum/app-role.ts index b5fbdc70f..30579da65 100644 --- a/dmp-frontend/src/app/core/common/enum/app-role.ts +++ b/dmp-frontend/src/app/core/common/enum/app-role.ts @@ -2,5 +2,6 @@ export enum AppRole { Admin = "Admin", Manager = "Manager", User = "User", - DescriptionTemplateEditor = "DescriptionTemplateEditor" + DescriptionTemplateEditor = "DescriptionTemplateEditor", + TenantAdmin = "TenantAdmin" } diff --git a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts index 0a4067e14..efbb64600 100644 --- a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts +++ b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts @@ -62,6 +62,7 @@ export class EnumUtils { case AppRole.User: return this.language.instant('TYPES.APP-ROLE.USER'); case AppRole.Manager: return this.language.instant('TYPES.APP-ROLE.MANAGER'); case AppRole.DescriptionTemplateEditor: return this.language.instant('TYPES.APP-ROLE.DESCRIPTION-TEMPLATE-EDITOR'); + case AppRole.TenantAdmin: return this.language.instant('TYPES.APP-ROLE.TENANT-ADMIN'); } } diff --git a/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.html b/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.html index cf5271771..98fa906a2 100644 --- a/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.html @@ -1,32 +1,39 @@ 
-
-
- -
- - {{enumUtils.toAppRoleString(role)}} - +
+
+
+
+
+ + {{enumUtils.toAppRoleString(role)}} + +
+
- -
-
- - - - {{enumUtils.toAppRoleString(role)}} - - - {{'GENERAL.VALIDATION.REQUIRED' | translate}} - +
+ + + + {{enumUtils.toAppRoleString(role)}} + + + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + +
+ +
+ +
+
+ +
+
- - -
diff --git a/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.scss b/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.scss index e551c69e1..7aa863d71 100644 --- a/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.scss +++ b/dmp-frontend/src/app/ui/admin/user/listing/role-editor/user-role-editor.component.scss @@ -85,6 +85,24 @@ padding-right: 10px; } + .tenant-admin { + // display: flex; + // justify-content: center; + // align-items: center; + min-width: 77px; + min-height: 28px; + color: #ffa631; + background: #ffe6c6 0% 0% no-repeat padding-box; + border-radius: 44px; + letter-spacing: 0.11px; + font-weight: 400; + opacity: 1; + margin-top: 0.5em; + margin-bottom: 0.5em; + padding-left: 10px; + padding-right: 10px; + } + .description-template-editor { // display: flex; // justify-content: center; diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index 21437a610..a5caceea3 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -1578,7 +1578,8 @@ "ADMIN": "Admin", "USER": "User", "MANAGER": "Manager", - "DESCRIPTION-TEMPLATE-EDITOR": "Description Template Editor" + "DESCRIPTION-TEMPLATE-EDITOR": "Description Template Editor", + "TENANT-ADMIN": "Tenant Admin" }, "IS-ACTIVE": { "ACTIVE": "Active",