-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5311 from pKallert/feature/new-workspace-review
FEATURE: convert detail view to fusion
- Loading branch information
Showing
14 changed files
with
620 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
- requestFilter: 'isPackage("Neos.Workspace.Ui") && isController("Workspace") && isFormat("html") && isAction("show")' | ||
viewObjectName: 'Neos\FluidAdaptor\View\StandaloneView' | ||
options: | ||
layoutRootPathPattern: 'resource://Neos.Neos/Private/Layouts' | ||
partialRootPaths: | ||
- 'resource://Neos.Workspace.Ui/Private/Partials' | ||
- 'resource://Neos.Neos/Private/Partials' | ||
|
||
- requestFilter: 'isPackage("Neos.Workspace.Ui") && isController("Workspace") && !isAction("show")' | ||
- requestFilter: 'isPackage("Neos.Workspace.Ui") && isController("Workspace")' | ||
viewObjectName: 'Neos\Fusion\View\FusionView' | ||
options: | ||
fusionPathPatterns: | ||
- 'resource://Neos.Neos/Private/Fusion' | ||
- 'resource://Neos.Fusion/Private/Fusion' | ||
- 'resource://Neos.Fusion.Form/Private/Fusion' | ||
- 'resource://Neos.Workspace.Ui/Private/Fusion' |
92 changes: 92 additions & 0 deletions
92
Neos.Workspace.Ui/Resources/Private/Fusion/Components/ReviewActions.fusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
## | ||
# Renders a document for review | ||
# | ||
prototype(Neos.Workspace.Ui:Component.ReviewActions) < prototype(Neos.Fusion:Component) { | ||
|
||
canPublishToBaseWorkspace = ${canPublishToBaseWorkspace} | ||
selectedWorkspaceName = ${selectedWorkspaceName} | ||
baseWorkspaceLabel = ${baseWorkspaceLabel} | ||
|
||
@private { | ||
i18n = ${I18n.id('').source('Main').package('Neos.Workspace.Ui')} | ||
indexWorkspaceUri = Neos.Fusion:ActionUri { | ||
action = 'index' | ||
|
||
} | ||
discardWorkspaceUri = Neos.Fusion:ActionUri { | ||
action = 'discardWorkspace' | ||
arguments { | ||
workspace = ${props.selectedWorkspaceName} | ||
} | ||
} | ||
publishWorkspaceUri = Neos.Fusion:ActionUri { | ||
action = 'publishWorkspace' | ||
arguments { | ||
workspace = ${props.selectedWorkspaceName} | ||
} | ||
} | ||
discardSelectedChanges = Neos.Fusion:ActionUri { | ||
action = 'PublishOrDiscardNodes' | ||
arguments { | ||
action = 'discard' | ||
workspace = ${props.selectedWorkspaceName} | ||
} | ||
} | ||
publishSelectedChangesTo = Neos.Fusion:ActionUri { | ||
action = 'PublishOrDiscardNodes' | ||
arguments { | ||
action = 'publish' | ||
workspace = ${props.selectedWorkspaceName} | ||
} | ||
} | ||
|
||
} | ||
|
||
renderer = afx` | ||
<div class="neos-footer"> | ||
<div class="neos-pull-left"> | ||
<Neos.Workspace.Ui:Component.Button | ||
icon="fas fa-chevron-left" | ||
label={props.i18n.id('back')} | ||
attributes.hx-get={private.indexWorkspaceUri} | ||
attributes.hx-target="body" | ||
attributes.hx-swap="innerHTML" | ||
/> | ||
</div> | ||
<div class="neos-pull-right"> | ||
<Neos.Workspace.Ui:Component.Button | ||
label={private.i18n.id('workspaces.discardAllChanges')} | ||
icon="fas fa-trash-alt icon-white" | ||
isDanger={true} | ||
attributes.hx-get={private.discardWorkspaceUri} | ||
attributes.hx-target="body" | ||
/> | ||
<Neos.Workspace.Ui:Component.Button | ||
@if.canPublishToBaseWorkspace={props.canPublishToBaseWorkspace} | ||
label={private.i18n.id('workspaces.publishAllChangesTo').arguments([props.baseWorkspaceLabel])} | ||
icon="fas fa-check-double icon-white" | ||
isPrimary={true} | ||
attributes.hx-get={private.publishWorkspaceUri} | ||
attributes.hx-target="body" | ||
/> | ||
<Neos.Workspace.Ui:Component.Button | ||
label={private.i18n.id('workspaces.discardSelectedChanges')} | ||
icon="fas fa-trash-alt icon-white" | ||
isDanger={true} | ||
attributes.hx-get={private.discardSelectedChanges} | ||
attributes.hx-target="body" | ||
/> | ||
<Neos.Workspace.Ui:Component.Button | ||
@if.canPublishToBaseWorkspace={props.canPublishToBaseWorkspace} | ||
label={I18n.id('workspaces.publishSelectedChangesTo')} | ||
icon="fas fa-check icon-white" | ||
isDanger={true} | ||
attributes.hx-get={private.publishSelectedChangesTo} | ||
attributes.hx-target="body" | ||
/> | ||
|
||
|
||
</div> | ||
</div> | ||
` | ||
} |
Oops, something went wrong.