diff --git a/Classes/CRON/FormBuilder/Controller/FormBuilderController.php b/Classes/CRON/FormBuilder/Controller/FormBuilderController.php
index 38ad7d7..1abe00c 100644
--- a/Classes/CRON/FormBuilder/Controller/FormBuilderController.php
+++ b/Classes/CRON/FormBuilder/Controller/FormBuilderController.php
@@ -78,6 +78,8 @@ public function submitAction($data) {
//we can only handle registered nodes, must be a form manipulation
if($node === NULL) $this->throwStatus(403);
+ if (is_array($value)) $value = implode(', ', $value);
+
$fields[] = array('label' => $node->getProperty('label'), 'value' => $value);
}
@@ -95,7 +97,9 @@ public function submitAction($data) {
/**
* @return void
*/
- public function submitPendingAction() {}
+ public function submitPendingAction() {
+ $this->view->assign('node',$this->request->getInternalArgument('__node'));
+ }
diff --git a/Configuration/NodeTypes.yaml b/Configuration/NodeTypes.yaml
index 97950ec..1a057a8 100644
--- a/Configuration/NodeTypes.yaml
+++ b/Configuration/NodeTypes.yaml
@@ -46,9 +46,15 @@
'CRON.FormBuilder:Input': true
'CRON.FormBuilder:Select': true
'CRON.FormBuilder:CheckBox': true
+ 'CRON.FormBuilder:CheckBoxGroup': true
'CRON.FormBuilder:TextArea': true
+ 'CRON.FormBuilder:Text': true
'*': false
+'CRON.FormBuilder:Text':
+ superTypes:
+ 'TYPO3.Neos.NodeTypes:Text': true
+
'CRON.FormBuilder:FormElementMixin':
superTypes:
'TYPO3.Neos:Content': true
@@ -92,7 +98,7 @@
'CRON.FormBuilder:FormElementPlaceholderMixin':
abstract: true
properties:
- value:
+ placeholder:
type: string
ui:
label: CRON.FormBuilder:NodeTypes.Plugin:field.placeholder
@@ -103,7 +109,6 @@
'CRON.FormBuilder:Input':
superTypes:
'CRON.FormBuilder:FormElementMixin': true
- 'CRON.FormBuilder:FormElementValueMixin': true
'CRON.FormBuilder:FormElementPlaceholderMixin': true
ui:
label: CRON.FormBuilder:NodeTypes.Plugin:fields.textfield
@@ -138,7 +143,6 @@
'CRON.FormBuilder:Select':
superTypes:
'CRON.FormBuilder:FormElementMixin': true
- 'CRON.FormBuilder:FormElementValueMixin': true
ui:
label: CRON.FormBuilder:NodeTypes.Plugin:fields.select
childNodes:
@@ -149,8 +153,6 @@
'CRON.FormBuilder:Option': true
'*': false
properties:
- value:
- ui: ~
multiple:
type: boolean
ui:
@@ -188,18 +190,45 @@
inspector:
group: options
+'CRON.FormBuilder:CheckBoxGroup':
+ superTypes:
+ 'CRON.FormBuilder:FormElementMixin': true
+ ui:
+ label: CRON.FormBuilder:NodeTypes.Plugin:fields.checkbox.group
+ childNodes:
+ elements:
+ type: 'TYPO3.Neos:ContentCollection'
+ constraints:
+ nodeTypes:
+ 'CRON.FormBuilder:CheckBox': true
+ '*': false
+ properties:
+ required:
+ ui: ~
+ multiple:
+ type: boolean
+ defaultValue: true
+
+
'CRON.FormBuilder:CheckBox':
superTypes:
'CRON.FormBuilder:FormElementMixin': true
'CRON.FormBuilder:FormElementValueMixin': true
ui:
label: CRON.FormBuilder:NodeTypes.Plugin:fields.checkbox
+ properties:
+ checked:
+ type: boolean
+ ui:
+ label: CRON.FormBuilder:NodeTypes.Plugin:fields.checkbox.checked
+ reloadIfChanged: true
+ inspector:
+ group: options
'CRON.FormBuilder:TextArea':
superTypes:
'CRON.FormBuilder:FormElementMixin': true
- 'CRON.FormBuilder:FormElementValueMixin': true
'CRON.FormBuilder:FormElementPlaceholderMixin': true
ui:
label: CRON.FormBuilder:NodeTypes.Plugin:fields.textarea
diff --git a/Resources/Private/Layouts/Default.html b/Resources/Private/Layouts/Default.html
new file mode 100644
index 0000000..eece4e1
--- /dev/null
+++ b/Resources/Private/Layouts/Default.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Resources/Private/Templates/FormBuilder/Index.html b/Resources/Private/Templates/FormBuilder/Index.html
index c83643a..e845349 100644
--- a/Resources/Private/Templates/FormBuilder/Index.html
+++ b/Resources/Private/Templates/FormBuilder/Index.html
@@ -2,25 +2,29 @@
{namespace fb=CRON\FormBuilder\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
-
-
-
-
-
-
-
-
- {elements -> f:format.raw()}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {elements -> f:format.raw()}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Resources/Private/Templates/FormBuilder/SubmitPending.html b/Resources/Private/Templates/FormBuilder/SubmitPending.html
index f0392f7..0f20aa0 100644
--- a/Resources/Private/Templates/FormBuilder/SubmitPending.html
+++ b/Resources/Private/Templates/FormBuilder/SubmitPending.html
@@ -1,2 +1,6 @@
-
-
+
+
+
+
+
+
diff --git a/Resources/Private/Templates/NodeTypes/CheckBox.html b/Resources/Private/Templates/NodeTypes/CheckBox.html
index abbae0f..bd0e1c8 100644
--- a/Resources/Private/Templates/NodeTypes/CheckBox.html
+++ b/Resources/Private/Templates/NodeTypes/CheckBox.html
@@ -5,10 +5,10 @@
diff --git a/Resources/Private/Templates/NodeTypes/CheckBoxGroup.html b/Resources/Private/Templates/NodeTypes/CheckBoxGroup.html
new file mode 100644
index 0000000..3942cc1
--- /dev/null
+++ b/Resources/Private/Templates/NodeTypes/CheckBoxGroup.html
@@ -0,0 +1,19 @@
+{namespace neos=TYPO3\Neos\ViewHelpers}
+
+
+
+
+
+
+
+
+
+ {elements -> f:format.raw()}
+
+
+ f:format.raw()}>
+ {elements -> f:format.raw()}
+
+
+
+
diff --git a/Resources/Private/Templates/NodeTypes/Input.html b/Resources/Private/Templates/NodeTypes/Input.html
index bc83a84..9852302 100644
--- a/Resources/Private/Templates/NodeTypes/Input.html
+++ b/Resources/Private/Templates/NodeTypes/Input.html
@@ -6,7 +6,7 @@
f:format.raw()} type="text" placeholder="{node.properties.placeholder}" readonly>
- f:format.raw()} type="{node.properties.type}" {f:if(condition: placeholder, then: 'placeholder="{node.properties.placeholder}" ')}>
+ f:format.raw()} type="{node.properties.type}" {f:if(condition: node.properties.placeholder, then: 'placeholder="{node.properties.placeholder}"')}>
diff --git a/Resources/Private/Templates/NodeTypes/Option.html b/Resources/Private/Templates/NodeTypes/Option.html
index 7a1b4bd..117c56d 100644
--- a/Resources/Private/Templates/NodeTypes/Option.html
+++ b/Resources/Private/Templates/NodeTypes/Option.html
@@ -4,6 +4,6 @@
{node.properties.option}
-
+
diff --git a/Resources/Private/Templates/NodeTypes/SubmitButton.html b/Resources/Private/Templates/NodeTypes/SubmitButton.html
deleted file mode 100644
index a4c7622..0000000
--- a/Resources/Private/Templates/NodeTypes/SubmitButton.html
+++ /dev/null
@@ -1,2 +0,0 @@
- f:format.raw()} type="submit" value="{node.properties.caption}">
-
diff --git a/Resources/Private/Templates/NodeTypes/Text.html b/Resources/Private/Templates/NodeTypes/Text.html
new file mode 100644
index 0000000..1dfa6d3
--- /dev/null
+++ b/Resources/Private/Templates/NodeTypes/Text.html
@@ -0,0 +1,4 @@
+{namespace neos=TYPO3\Neos\ViewHelpers}
+ f:format.raw()}>
+{neos:contentElement.editable(property: 'text')}
+
diff --git a/Resources/Private/Templates/NodeTypes/TextArea.html b/Resources/Private/Templates/NodeTypes/TextArea.html
index 8082276..964f81d 100644
--- a/Resources/Private/Templates/NodeTypes/TextArea.html
+++ b/Resources/Private/Templates/NodeTypes/TextArea.html
@@ -6,7 +6,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/Resources/Private/Translations/de/Main.xlf b/Resources/Private/Translations/de/Main.xlf
index c5ec7cd..78aaba3 100644
--- a/Resources/Private/Translations/de/Main.xlf
+++ b/Resources/Private/Translations/de/Main.xlf
@@ -18,6 +18,10 @@
Bitte Select-Optionen hinzufügen
+
+
+ Bitte Auswahlkästen hinzufügen
+
Folgende Fehler sind aufgetreten:
diff --git a/Resources/Private/Translations/de/NodeTypes/Plugin.xlf b/Resources/Private/Translations/de/NodeTypes/Plugin.xlf
index d44fc91..5a3e7b5 100644
--- a/Resources/Private/Translations/de/NodeTypes/Plugin.xlf
+++ b/Resources/Private/Translations/de/NodeTypes/Plugin.xlf
@@ -129,6 +129,14 @@
Auswahlkasten
+
+
+ Auswahlkasten-Gruppe
+
+
+
+ Vorausgewählt
+