Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	composer.json
  • Loading branch information
Dennis Irmscher committed Sep 14, 2016
2 parents e0447e5 + d201638 commit 1c61e7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A Neos CMS package for forms in Twitter Bootstrap style and some additional feat
## Installation
Add the package in your site package composer.json

`"require": {
"obisconcept/neos-bootstrap-form": "~1.0.0"
}`
```
"require": {
"obisconcept/neos-bootstrap-form": "~1.0"
}
```
12 changes: 10 additions & 2 deletions Resources/Private/Templates/Form/Checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@
<div class="{element.properties.containerInnerClassAttribute}">
<div class="checkbox">
<label for="{element.uniqueIdentifier}">
<f:form.checkbox property="{element.identifier}" id="{element.uniqueIdentifier}" value="{element.properties.value}" errorClass="{element.properties.elementErrorClassAttribute}" additionalAttributes="{required: element.required}" /> {element.label -> f:format.nl2br()}
<f:if condition="{element.required}">
<f:then>
<f:form.checkbox property="{element.identifier}" id="{element.uniqueIdentifier}" value="{element.properties.value}" errorClass="{element.properties.elementErrorClassAttribute}" additionalAttributes="{required: element.required}" />
</f:then>
<f:else>
<f:form.checkbox property="{element.identifier}" id="{element.uniqueIdentifier}" value="{element.properties.value}" errorClass="{element.properties.elementErrorClassAttribute}" />
</f:else>
</f:if>
{element.label -> f:format.nl2br()}
</label>
</div>
</div>
</div>
</f:form.validationResults>
</f:form.validationResults>

0 comments on commit 1c61e7d

Please sign in to comment.