-
Notifications
You must be signed in to change notification settings - Fork 15
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 #61 from sitegeist/feature/fusionRendering
Feature: Adjust rendering of backend module from fluid to fusion
- Loading branch information
Showing
24 changed files
with
594 additions
and
487 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
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,67 @@ | ||
prototype(Sitegeist.Taxonomy:Form.Taxonomy) < prototype(Neos.Fusion:Component) { | ||
|
||
i18nMain = ${Translation.value('').package("Sitegeist.Taxonomy").source('Main')} | ||
i18nVocabulary = ${Translation.value('').package("Sitegeist.Taxonomy").source('NodeTypes/Vocabulary')} | ||
i18nTaxonomy = ${Translation.value('').package("Sitegeist.Taxonomy").source('NodeTypes/Taxonomy')} | ||
|
||
targetAction = null | ||
taxonomy = null | ||
defaultTaxonomy = null | ||
parent = null | ||
vocabulary = null | ||
|
||
additionalFieldPrototypeNames = ${Configuration.setting('Sitegeist.Taxonomy.backendModule.additionalTaxonomyFieldPrototypes')} | ||
|
||
renderer = afx` | ||
<Neos.Fusion.Form:Form form.target.action={props.targetAction} form.data.properties={props.taxonomy.properties}> | ||
|
||
<Neos.Fusion.Form:Hidden field.name="taxonomy" field.value={props.taxonomy.contextPath} @if={props.taxonomy}/> | ||
<Neos.Fusion.Form:Hidden field.name="parent" field.value={props.parent.contextPath} @if={props.parent}/> | ||
|
||
<fieldset> | ||
<div class="neos-control-group"> | ||
<label class="neos-control-label" for="title"> | ||
{props.i18nTaxonomy.id('properties.title')} | ||
<span @if={props.defaultTaxonomy}>: {props.defaultTaxonomy.properties.title}</span> | ||
</label> | ||
<Neos.Fusion.Form:Textarea attributes.class="neos-span6" field.name="properties[title]" /> | ||
</div> | ||
|
||
<div class="neos-control-group"> | ||
<label class="neos-control-label" for="description"> | ||
{props.i18nTaxonomy.id('properties.description')} | ||
<span @if={props.defaultTaxonomy}>: {props.defaultTaxonomy.properties.description}</span> | ||
</label> | ||
<Neos.Fusion.Form:Textarea attributes.class="neos-span6 form-inline" field.name="properties[description]"/> | ||
</div> | ||
|
||
<Neos.Fusion:Fragment @if={props.additionalFieldPrototypeNames}> | ||
<Neos.Fusion:Loop items={props.additionalFieldPrototypeNames} itemKey="key" itemName="prototypeName"> | ||
<div class="neos-control-group"> | ||
<Neos.Fusion:Renderer | ||
type={prototypeName} | ||
|
||
element.name={key} | ||
element.taxonomy={props.taxonomy} | ||
element.defaultTaxonomy={props.defaultTaxonomy} | ||
/> | ||
</div> | ||
</Neos.Fusion:Loop> | ||
</Neos.Fusion:Fragment> | ||
|
||
<div class="neos-control-group"> | ||
<Neos.Fusion:Link.Action | ||
class="neos-button" | ||
href.action="vocabulary" | ||
href.arguments.vocabulary={props.vocabulary} | ||
> | ||
{props.i18nMain.id('generic.cancel')} | ||
</Neos.Fusion:Link.Action> | ||
| ||
<Neos.Fusion.Form:Button attributes.class="neos-button neos-button-primary">{props.i18nMain.id('generic.save') + ''}</Neos.Fusion.Form:Button> | ||
</div> | ||
</fieldset> | ||
</Neos.Fusion.Form:Form> | ||
` | ||
|
||
} |
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,64 @@ | ||
prototype(Sitegeist.Taxonomy:Form.Vocabulary) < prototype(Neos.Fusion:Component) { | ||
|
||
i18nMain = ${Translation.value('').package("Sitegeist.Taxonomy").source('Main')} | ||
i18nVocabulary = ${Translation.value('').package("Sitegeist.Taxonomy").source('NodeTypes/Vocabulary')} | ||
|
||
targetAction = null | ||
vocabulary = null | ||
defaultVocabulary = null | ||
taxonomyRoot = null | ||
|
||
additionalFieldPrototypeNames = ${Configuration.setting('Sitegeist.Taxonomy.backendModule.additionalVocabularyFieldPrototypes')} | ||
|
||
renderer = afx` | ||
<Neos.Fusion.Form:Form form.target.action={props.targetAction} form.data.properties={props.vocabulary ? props.vocabulary.properties : null}> | ||
|
||
<Neos.Fusion.Form:Hidden field.name="vocabulary" field.value={props.vocabulary.contextPath} @if={props.vocabulary}/> | ||
<Neos.Fusion.Form:Hidden field.name="taxonomyRoot" field.value={props.taxonomyRoot.contextPath} @if={props.taxonomyRoot}/> | ||
|
||
<fieldset> | ||
<div class="neos-control-group"> | ||
<label class="neos-control-label" for="title"> | ||
{props.i18nVocabulary.id('properties.title')} | ||
<span @if={props.defaultVocabulary}>: {props.defaultVocabulary.properties.title}</span> | ||
</label> | ||
<Neos.Fusion.Form:Textarea attributes.class="neos-span6" field.name="properties[title]" /> | ||
</div> | ||
|
||
<div class="neos-control-group"> | ||
<label class="neos-control-label" for="description"> | ||
{props.i18nVocabulary.id('properties.description')} | ||
<span @if={props.defaultVocabulary}>: {props.defaultVocabulary.properties.description}</span> | ||
</label> | ||
<Neos.Fusion.Form:Textarea attributes.class="neos-span6 form-inline" field.name="properties[description]"/> | ||
</div> | ||
|
||
<Neos.Fusion:Fragment @if={props.additionalFieldPrototypeNames}> | ||
<Neos.Fusion:Loop items={props.additionalFieldPrototypeNames} itemKey="key" itemName="prototypeName"> | ||
<div class="neos-control-group"> | ||
<Neos.Fusion:Renderer | ||
type={prototypeName} | ||
element.name={key} | ||
element.vocabulary={props.vocabulary} | ||
element.defaultVocabulary={props.defaultVocabulary} | ||
/> | ||
</div> | ||
</Neos.Fusion:Loop> | ||
</Neos.Fusion:Fragment> | ||
|
||
<div class="neos-control-group"> | ||
<Neos.Fusion:Link.Action | ||
class="neos-button" | ||
href.action="index" | ||
href.arguments.root={taxonomyRoot} | ||
> | ||
{props.i18nMain.id('generic.cancel')} | ||
</Neos.Fusion:Link.Action> | ||
| ||
<Neos.Fusion.Form:Button attributes.class="neos-button neos-button-primary">{props.i18nMain.id('generic.save') + ''}</Neos.Fusion.Form:Button> | ||
</div> | ||
</fieldset> | ||
</Neos.Fusion.Form:Form> | ||
` | ||
|
||
} |
Oops, something went wrong.