-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8476669
commit 1d3f691
Showing
8 changed files
with
85 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
prototype(Onedrop.AjaxForm:Form) < prototype(Neos.NodeTypes.Form:Form) { | ||
sectionName = 'Content' | ||
templatePath = 'resource://Onedrop.AjaxForm/Private/Templates/NodeTypes/AjaxForm.html' | ||
|
||
@context.formIdentifier = ${this.formIdentifier} | ||
@context.locale = ${node.context.dimensions.language[0]} | ||
@context.presetName = ${this.presetName} | ||
|
||
formWrapperAttributes = Neos.Fusion:Attributes { | ||
data-ajax = 'ajax-form' | ||
data-ajax-uri = Neos.Fusion:UriBuilder { | ||
package = 'Onedrop.AjaxForm' | ||
controller = 'AjaxForm' | ||
action = 'index' | ||
format = 'html' | ||
arguments { | ||
locale = ${locale} | ||
formIdentifier = ${formIdentifier} | ||
presetName = ${presetName} | ||
} | ||
} | ||
} | ||
} |
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,12 @@ | ||
prototype(Neos.Neos:Page) { | ||
body.javascripts.ajaxForms = Neos.Fusion:Tag { | ||
@position = '5100' | ||
tagName = 'script' | ||
attributes { | ||
src = Neos.Fusion:ResourceUri { | ||
path = 'resource://Onedrop.AjaxForm/Public/JavaScript/form.js' | ||
} | ||
} | ||
@if.hasFormAndIsLiveAndActive = ${q(node).children('[instanceof Neos.Neos:ContentCollection]').find('[instanceof Onedrop.AjaxForm:Form]').is() && node.context.live && Configuration.setting('Onedrop.AjaxForm.includeJavascript')} | ||
} | ||
} |
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,36 +1,4 @@ | ||
prototype(Onedrop.AjaxForm:Form) < prototype(Neos.NodeTypes.Form:Form) { | ||
sectionName = 'Content' | ||
templatePath = 'resource://Onedrop.AjaxForm/Private/Templates/NodeTypes/AjaxForm.html' | ||
|
||
@context.formIdentifier = ${this.formIdentifier} | ||
@context.locale = ${node.context.dimensions.language[0]} | ||
@context.presetName = ${this.presetName} | ||
|
||
formWrapperAttributes = Neos.Fusion:Attributes { | ||
data-ajax = 'ajax-form' | ||
data-ajax-uri = Neos.Fusion:UriBuilder { | ||
package = 'Onedrop.AjaxForm' | ||
controller = 'AjaxForm' | ||
action = 'index' | ||
format = 'html' | ||
arguments { | ||
locale = ${locale} | ||
formIdentifier = ${formIdentifier} | ||
presetName = ${presetName} | ||
} | ||
} | ||
} | ||
} | ||
|
||
prototype(Neos.Neos:Page) { | ||
body.javascripts.ajaxForms = Neos.Fusion:Tag { | ||
@position = '5100' | ||
tagName = 'script' | ||
attributes { | ||
src = Neos.Fusion:ResourceUri { | ||
path = 'resource://Onedrop.AjaxForm/Public/JavaScript/form.js' | ||
} | ||
} | ||
@if.hasFormAndIsLiveAndActive = ${q(node).children('[instanceof Neos.Neos:ContentCollection]').find('[instanceof Onedrop.AjaxForm:Form]').is() && node.context.live && Configuration.setting('Onedrop.AjaxForm.includeJavascript')} | ||
} | ||
} | ||
/** | ||
* Root Fusion for the Onedrop.AjaxForm package | ||
*/ | ||
include: ./**/*.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
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,19 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> | ||
<file original="" product-name="Onedrop.AjaxForm" source-language="en" datatype="plaintext" target-language="de"> | ||
<body> | ||
<trans-unit id="ui.label" xml:space="preserve" approved="yes"> | ||
<source>Ajax Form</source> | ||
<target xml:lang="de">Ajax Formular</target></trans-unit> | ||
<trans-unit id="groups.form" xml:space="preserve" approved="yes"> | ||
<source>Form</source> | ||
<target xml:lang="de">Formular</target></trans-unit> | ||
<trans-unit id="properties.formIdentifier" xml:space="preserve" approved="yes"> | ||
<source>Form Identifier</source> | ||
<target xml:lang="de">Formular-ID</target></trans-unit> | ||
<trans-unit id="properties.formIdentifier.selectBoxEditor.placeholder" xml:space="preserve" approved="yes"> | ||
<source>Select the Form identifier</source> | ||
<target xml:lang="de">Formular-ID auswählen</target></trans-unit> | ||
</body> | ||
</file> | ||
<file original="" product-name="Onedrop.AjaxForm" source-language="en" datatype="plaintext" target-language="de"> | ||
<body> | ||
<trans-unit id="ui.label" approved="yes"> | ||
<source>Ajax Form</source> | ||
<target xml:lang="de">Ajax Formular</target> | ||
</trans-unit> | ||
<trans-unit id="groups.form" approved="yes"> | ||
<source>Form</source> | ||
<target xml:lang="de">Formular</target> | ||
</trans-unit> | ||
<trans-unit id="properties.formIdentifier" approved="yes"> | ||
<source>Form Identifier</source> | ||
<target xml:lang="de">Formular-ID</target> | ||
</trans-unit> | ||
<trans-unit id="properties.formIdentifier.selectBoxEditor.placeholder" approved="yes"> | ||
<source>Select the Form identifier</source> | ||
<target xml:lang="de">Formular-ID auswählen</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
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