-
Notifications
You must be signed in to change notification settings - Fork 4
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 #32 from sbruggmann/neos-4-0
TASK: Make the comments package Neos 4.0 ready
- Loading branch information
Showing
23 changed files
with
51 additions
and
50 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
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Bootstrap/Checkbox.html
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,9 +1,9 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-check{f:if(condition: validationResults.flattenedErrors, then: ' has-danger')}"> | ||
<label class="form-check-label"> | ||
<f:form.checkbox property="{fieldname}" id="{fieldname}" class="form-check-input" value="1" /> <comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')} | ||
</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,7 +1,7 @@ | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<f:if condition="{validationResults.flattenedErrors}"> | ||
<div class="form-group has-danger"> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:if> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Bootstrap/TextArea.html
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,8 +1,8 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' has-danger')}"> | ||
<label for="{fieldname}" class="form-control-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:form.textarea property="{fieldname}" id="{fieldname}" rows="3" class="form-control" errorClass="form-control-danger" /> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Bootstrap/TextField.html
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,8 +1,8 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' has-danger')}"> | ||
<label for="{fieldname}" class="form-control-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:form.textfield property="{fieldname}" id="{fieldname}" type="{f:if(condition: type, then: type, else: 'text')}" class="form-control" errorClass="form-control-danger" /> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,7 +1,7 @@ | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<f:if condition="{validationResults.flattenedErrors}"> | ||
<div class="form-input has-error"> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:if> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,8 +1,8 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-textarea{f:if(condition: validationResults.flattenedErrors, then: ' has-error')}"> | ||
<f:form.textarea property="{fieldname}" id="{fieldname}" rows="3" class="form-textarea-field" /> | ||
<label for="{fieldname}" class="form-textarea-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,8 +1,8 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-input{f:if(condition: validationResults.flattenedErrors, then: ' has-error')}"> | ||
<f:form.textfield property="{fieldname}" id="{fieldname}" type="{f:if(condition: type, then: type, else: 'text')}" class="form-input-field" /> | ||
<label for="{fieldname}" class="form-input-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Foundation/Checkbox.html
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,8 +1,8 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' is-invalid-label')}"> | ||
<f:form.checkbox property="{fieldname}" id="{fieldname}" value="1" /> | ||
<label for="{fieldname}"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Foundation/Error.html
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,9 +1,9 @@ | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<f:if condition="{validationResults.flattenedErrors}"> | ||
<div class="form-group is-invalid-label"> | ||
<label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</label> | ||
</div> | ||
</f:if> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Foundation/TextArea.html
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,10 +1,10 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' is-invalid-label')}"> | ||
<label> | ||
<comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')} | ||
<f:form.textarea property="{fieldname}" id="{fieldname}" rows="3" class="form-control" /> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</label> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Foundation/TextField.html
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,10 +1,10 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="form-group{f:if(condition: validationResults.flattenedErrors, then: ' is-invalid-label')}"> | ||
<label> | ||
<comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')} | ||
<f:form.textfield property="{fieldname}" id="{fieldname}" type="{f:if(condition: type, then: type, else: 'text')}" class="form-control" /> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</label> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,7 +1,7 @@ | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<f:if condition="{validationResults.flattenedErrors}"> | ||
<div class="mf-input mf-has-error"> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:if> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Material/TextArea.html
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,9 +1,9 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="mf-textarea{f:if(condition: validationResults.flattenedErrors, then: ' mf-has-error')}"> | ||
<f:form.textarea property="{fieldname}" id="{fieldname}" rows="3" class="mf-textarea-field" /> | ||
<div class="mf-textarea-bar"></div> | ||
<label for="{fieldname}" class="mf-textarea-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/Material/TextField.html
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,9 +1,9 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="mf-input{f:if(condition: validationResults.flattenedErrors, then: ' mf-has-error')}"> | ||
<f:form.textfield property="{fieldname}" id="{fieldname}" type="{f:if(condition: type, then: type, else: 'text')}" class="mf-input-field" /> | ||
<div class="mf-input-bar"></div> | ||
<label for="{fieldname}" class="mf-input-label"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/WebExcess/Checkbox.html
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,10 +1,10 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="clearfix{f:if(condition: validationResults.flattenedErrors, then: ' error')}"> | ||
<label> | ||
<f:form.checkbox property="{fieldname}" id="{fieldname}" value="1" /> | ||
<span><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</span> | ||
</label> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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,7 +1,7 @@ | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<f:if condition="{validationResults.flattenedErrors}"> | ||
<div class="clearfix error"> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:if> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/WebExcess/TextArea.html
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,10 +1,10 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="clearfix{f:if(condition: validationResults.flattenedErrors, then: ' error')}"> | ||
<label for="{fieldname}"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<div class="input"> | ||
<f:form.textarea property="{fieldname}" id="{fieldname}" rows="3" /> | ||
</div> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
4 changes: 2 additions & 2 deletions
4
Resources/Private/Partials/FormElements/WebExcess/TextField.html
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,10 +1,10 @@ | ||
{namespace comments=WebExcess\Comments\ViewHelpers} | ||
<f:form.validationResults for="comment.{fieldname}"> | ||
<f:validation.results for="comment.{fieldname}"> | ||
<div class="clearfix{f:if(condition: validationResults.flattenedErrors, then: ' error')}"> | ||
<label for="{fieldname}"><comments:translate id="comment.form.{fieldname}" />{f:if(condition: required, then: '<sup class="is-required">*</sup>')}</label> | ||
<div class="input"> | ||
<f:form.textfield property="{fieldname}" id="{fieldname}" type="{f:if(condition: type, then: type, else: 'text')}" /> | ||
</div> | ||
<f:render partial="Validation" arguments="{fieldname: fieldname}" /> | ||
</div> | ||
</f:form.validationResults> | ||
</f:validation.results> |
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