From 34185112d5857f16d5886b67cb4f1df1adc66d66 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Thu, 15 Aug 2024 12:59:58 +0200 Subject: [PATCH] BUGFIX: Share same role details when adding user as when editing them When editing users, much more information was shown about the individual roles than when adding a user, where whoever adds them gets no information about the role except its name. With this change the descriptions of the role and their individual privileges are displayed in the same way as in the edit account view. --- .../Partials/Module/Shared/EditAccount.html | 80 +---------------- .../Module/Shared/RolesSelection.html | 85 +++++++++++++++++++ .../Module/Administration/Users/New.html | 36 ++++---- 3 files changed, 102 insertions(+), 99 deletions(-) create mode 100644 Neos.Neos/Resources/Private/Partials/Module/Shared/RolesSelection.html diff --git a/Neos.Neos/Resources/Private/Partials/Module/Shared/EditAccount.html b/Neos.Neos/Resources/Private/Partials/Module/Shared/EditAccount.html index 2c690c78077..be721e57de7 100644 --- a/Neos.Neos/Resources/Private/Partials/Module/Shared/EditAccount.html +++ b/Neos.Neos/Resources/Private/Partials/Module/Shared/EditAccount.html @@ -6,7 +6,7 @@
- {account.accountIdentifier} + {account.accountIdentifier}
@@ -28,83 +28,7 @@
- {neos:backend.translate(source: 'Modules', id: 'users.roles')} - - - - - - - - - - - - - - - - - - - - - - - - -
LabelDescription
-
- -
-
-
- -
-
- - -
- -
-
+
- - - - -

- -
-
-
- - - -
  • - -
  • -
    -
    diff --git a/Neos.Neos/Resources/Private/Partials/Module/Shared/RolesSelection.html b/Neos.Neos/Resources/Private/Partials/Module/Shared/RolesSelection.html new file mode 100644 index 00000000000..100159f1155 --- /dev/null +++ b/Neos.Neos/Resources/Private/Partials/Module/Shared/RolesSelection.html @@ -0,0 +1,85 @@ +{namespace neos=Neos\Neos\ViewHelpers} +{neos:backend.translate(source: 'Modules', id: 'users.roles')} + + + + + + + + + + + + + + + + + + + + + + + + +
    LabelDescription
    +
    + +
    +
    +
    + +
    +
    + + +
    + +
    +
    + + + + +

    + +
    +
    +
    + + + +
  • + +
  • +
    +
    diff --git a/Neos.Neos/Resources/Private/Templates/Module/Administration/Users/New.html b/Neos.Neos/Resources/Private/Templates/Module/Administration/Users/New.html index f7572a1977b..4e282c4749d 100644 --- a/Neos.Neos/Resources/Private/Templates/Module/Administration/Users/New.html +++ b/Neos.Neos/Resources/Private/Templates/Module/Administration/Users/New.html @@ -33,28 +33,17 @@

    {neos:backend.translate(id: 'user.new.subtitle', value: 'Create a new user', - - -
    - -
    - - -
    -
    -
    -
    -
    - - -
    - + + +
    + +
    + + +
    - -
    + +
    @@ -86,6 +75,11 @@

    {neos:backend.translate(id: 'user.new.subtitle', value: 'Create a new user',

    +
    +
    + +
    +