Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Krüger committed Feb 27, 2017
2 parents d7f5291 + 8e60a05 commit 4b6ce3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<f:validation.results for="data.{node.identifier}">
<div>
<div>
<f:render section="Content"/>
</div>
<div {layoutAttributes -> f:format.raw()}>
<f:validation.results for="data.{node.identifier}">
<f:render section="Content"/>
<f:render partial="FlattenedErrors" arguments="{_all}" />
</div>
</f:validation.results>
</f:validation.results>
</div>
18 changes: 9 additions & 9 deletions Resources/Private/Templates/NodeTypes/Layouts/Wrapper.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<f:validation.results for="data.{node.identifier}">
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' has-error')}{f:if(condition: node.properties.required, then: ' required')}">
<label for="{node.identifier}">{node.properties.label}</label>
<div>
<f:render section="Content"/>
</div>
<f:render partial="FlattenedErrors" arguments="{_all}" />
</div>
</f:validation.results>
<div {layoutAttributes -> f:format.raw()}>
<f:validation.results for="data.{node.identifier}">
<div class="{f:if(condition: validationResults.flattenedErrors, then: 'has-error')}">
<label for="{node.identifier}">{node.properties.label}</label>
<f:render section="Content"/>
<f:render partial="FlattenedErrors" arguments="{_all}" />
</div>
</f:validation.results>
</div>
3 changes: 2 additions & 1 deletion Resources/Private/TypoScript/Root.ts2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ prototype(CRON.FormBuilder:FormElement) < prototype(TYPO3.Neos:Content) {
layoutName = 'Wrapper'

layoutAttributes = TYPO3.TypoScript:Attributes
layoutAttributes.class = ''
layoutAttributes.class = ${'form-group' + (q(node).property('required') ? ' required' : '')}
[email protected] = TYPO3.TypoScript:Case {
@context.nodeTypeClassName = ${String.toLowerCase(String.pregReplace(q(node).property('_nodeType.name'), '/[[:^alnum:]]/', '-')) + '-layout'}

Expand Down Expand Up @@ -52,6 +52,7 @@ prototype(CRON.FormBuilder:CheckBoxGroup) < prototype(CRON.FormBuilder:FormEleme
nodePath = 'elements'

prototype(CRON.FormBuilder:CheckBox) {
layoutAttributes.class = ''
attributes.name = ${groupName}
checked = ${groupValue ? Array.indexOf(groupValue, q(node).property('value')) > -1 : q(node).property('checked')}
}
Expand Down

0 comments on commit 4b6ce3c

Please sign in to comment.