From 58d687d1fef2496c117734d96c696e8593593c46 Mon Sep 17 00:00:00 2001 From: "openslides-automation[bot]" <125256978+openslides-automation[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 11:57:10 +0000 Subject: [PATCH] Personal info and Organisation specific info UI Adjustments (#3717) (#3724) Co-authored-by: Elblinator <69210919+Elblinator@users.noreply.github.com> --- .../user-detail-view.component.html | 194 ++++++++++-------- .../user-detail-view.component.scss | 11 +- .../account-detail.component.html | 49 ++--- 3 files changed, 137 insertions(+), 117 deletions(-) diff --git a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html index 02a00cb641..6ac26b99fd 100644 --- a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html +++ b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html @@ -56,6 +56,7 @@

{{ 'Personal information' | translate }}

+
@@ -63,37 +64,21 @@

{{ 'Personal information' | translate }}

- + {{ 'Given name' | translate }} - - + {{ 'Surname' | translate }}
+
- - - {{ 'Email' | translate }} - - - {{ 'Please enter a valid email address!' | translate }} - - - - - - {{ 'Pronoun' | translate }} - - {{ 'max. 32 characters allowed' | translate }} - - - + {{ 'Gender' | translate }} - @@ -102,68 +87,101 @@

{{ 'Personal information' | translate }}

+ + + {{ 'Pronoun' | translate }} + + {{ 'max. 32 characters allowed' | translate }} +
- -
- - {{ 'Username' | translate }} - - - - You have to enter at least one character - - - Username may not contain spaces + +
+ + + {{ 'Email' | translate }} + + + {{ 'Please enter a valid email address!' | translate }} + + + + {{ 'Membership number' | translate }} + + +
-
- - - {{ 'Initial password' | translate }} - - - - -
+ {{ 'Username' | translate }} + + + + You have to enter at least one character + + + Username may not contain spaces + +
+ -
- - {{ 'Membership number' | translate }} - - + + + + {{ 'Initial password' | translate }} + + + + +
@@ -175,8 +193,8 @@

{{ 'Personal information' | translate }}

{{ 'Personal information' | translate }}

- +

{{ 'Name' | translate }}

@@ -203,39 +221,33 @@

{{ 'Name' | translate }}

- -
-
-

{{ 'Email' | translate }}

- {{ user.email }} -
-
-

{{ 'Gender' | translate }}

{{ user.gender | translate }}
+
+
+

{{ 'Email' | translate }}

+ {{ user.email }} +
+ +
+

{{ 'Membership number' | translate }}

+ {{ user.member_number }} +

{{ 'Username' | translate }}

{{ user.username }}
-

{{ 'Initial password' | translate }}

{{ user.default_password }}
- - -
-

{{ 'Membership number' | translate }}

- {{ user.member_number }} -
-

{{ 'SSO Identification' | translate }}

diff --git a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.scss b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.scss index 2b59441691..94eddd25da 100644 --- a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.scss +++ b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.scss @@ -1,12 +1,19 @@ @import 'src/assets/styles/media-queries.scss'; @include set-breakpoint-upper(xs) { + .form100 { + width: 100%; + } .form70 { width: 70%; } - .form37 { - width: 37%; + .form58 { + width: 58%; + } + + .form38 { + width: 38%; } .form25 { diff --git a/client/src/app/site/pages/organization/pages/accounts/pages/account-detail/components/account-detail/account-detail.component.html b/client/src/app/site/pages/organization/pages/accounts/pages/account-detail/components/account-detail/account-detail.component.html index 00c7eb917c..0ba6b6e785 100644 --- a/client/src/app/site/pages/organization/pages/accounts/pages/account-detail/components/account-detail/account-detail.component.html +++ b/client/src/app/site/pages/organization/pages/accounts/pages/account-detail/components/account-detail/account-detail.component.html @@ -37,23 +37,7 @@

{{ user?.full_name }}

{{ 'Organization specific information' | translate }}

- - - {{ 'Default vote weight' | translate }} - - - Please select a vote weight greater than or equal to 0.000001 - - - Please select a vote weight greater than zero. - - -
- -
+
{{ 'Administration roles (at organization level)' | translate }} @@ -69,6 +53,7 @@

{{ 'Organization specific information' | translate }}

+
{{ 'Committee admin' | translate }} @@ -84,28 +69,44 @@

{{ 'Organization specific information' | translate }}

+ +
+ + {{ 'Default vote weight' | translate }} + + + Please select a vote weight greater than or equal to 0.000001 + + + Please select a vote weight greater than zero. + + +

{{ 'Organization specific information' | translate }}

- -
-

{{ 'Default vote weight' | translate }}

- {{ user.default_vote_weight }} -
-

{{ 'Administration roles (at organization level)' | translate }}

{{ getOmlVerboseName(user.organization_management_level) | translate }}
- + +
+

{{ 'Default vote weight' | translate }}

+ {{ user.default_vote_weight }} +
+

{{ 'Last email sent' | translate }}

{{ user.last_email_sent | localizedDate }}
+

{{ 'Last login' | translate }}