From 5f7e14b0aa0b2a1e8cce64f55979085afa8b52b1 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Thu, 27 Jun 2024 13:57:19 +0200 Subject: [PATCH] TASK: Improve new workspace template --- .../Resources/Private/Fusion/Views/New.fusion | 50 ++++++++++++------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/Neos.Workspace.Ui/Resources/Private/Fusion/Views/New.fusion b/Neos.Workspace.Ui/Resources/Private/Fusion/Views/New.fusion index ce3615a8d5c..23009730452 100644 --- a/Neos.Workspace.Ui/Resources/Private/Fusion/Views/New.fusion +++ b/Neos.Workspace.Ui/Resources/Private/Fusion/Views/New.fusion @@ -2,35 +2,47 @@ Neos.Workspace.Ui.WorkspaceController.new = Neos.Fusion:Component { flashMessages = ${flashMessages} baseWorkspaceOptions = ${baseWorkspaceOptions} workspace = ${workspace} + i18n = ${I18n.id('').source('Main').package('Neos.Workspace.Ui')} prototype(Neos.Fusion.Form:LabelRenderer) { translationPackage = 'Neos.Workspace.Ui' translationSource = 'Main' } + prototype(Neos.Fusion.Form:Neos.BackendModule.FieldContainer) { + translation.label { + package = 'Neos.Workspace.Ui' + source = 'Main' + } + } + renderer = afx`
-

{I18n.translate('workspaces.createNewWorkspace', 'Create new workspace', [], 'Main', 'Neos.Workspace.Ui')}

- +

{props.i18n.id('workspaces.createNewWorkspace')}

+
- - - + + - - + - {workspaceTitle} - +

- {I18n.translate('workspaces.workspace.visibility', 'Visibility', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.workspace.visibility')}

- - + - {I18n.translate('workspaces.workspace.visibility.private', 'Private', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.workspace.visibility.private')} - {I18n.translate('workspaces.workspace.visibility.private.help', 'Only reviewers and administrators can access and modify this workspace', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.workspace.visibility.private.help')} @@ -67,13 +79,13 @@ Neos.Workspace.Ui.WorkspaceController.new = Neos.Fusion:Component { - {I18n.translate('workspaces.workspace.visibility.internal', 'Internal', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.workspace.visibility.internal')} - {I18n.translate('workspaces.workspace.visibility.internal.help', 'Any logged in editor can see and modify this workspace.', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.workspace.visibility.internal.help')} - +
- {I18n.translate('workspaces.createWorkspace', 'Create workspace', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('workspaces.createWorkspace')}
- {I18n.translate('cancel', 'Cancel', [], 'Main', 'Neos.Workspace.Ui')} + {props.i18n.id('cancel')}