-
-
Notifications
You must be signed in to change notification settings - Fork 33
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 #18 from gerhard-boden/prevent-double-encoding-sta…
…tic-text-master BUGFIX: Prevent double encoding in remaining form elements
- Loading branch information
Showing
11 changed files
with
31 additions
and
14 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
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,8 @@ | ||
{namespace form=Neos\Form\ViewHelpers} | ||
<f:layout name="Neos.Form:Field" /> | ||
<f:section name="field"> | ||
<f:form.password property="{element.identifier}" id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}" errorClass="{element.properties.elementErrorClassAttribute}" /> | ||
<f:if condition="{element.properties.passwordDescription}"> | ||
<span class="help-block">{element.properties.passwordDescription -> f:translate(id: 'forms.elements.{element.identifier}.passwordDescription', package: '{element.renderingOptions.translationPackage}')}</span> | ||
<span class="help-block">{element -> form:translateElementProperty(property: 'passwordDescription')}</span> | ||
</f:if> | ||
</f:section> |
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,10 @@ | ||
{namespace form=Neos\Form\ViewHelpers} | ||
<f:layout name="Neos.Form:Field" /> | ||
<f:section name="field"> | ||
<f:form.password property="{element.identifier}.password" id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}" errorClass="{element.properties.elementErrorClassAttribute}" /> | ||
<f:if condition="{element.properties.passwordDescription}"> | ||
<span class="help-block">{element.properties.passwordDescription -> f:translate(id: 'forms.elements.{element.identifier}.passwordDescription', package: '{element.renderingOptions.translationPackage}')}</span> | ||
<span class="help-block">{element -> form:translateElementProperty(property: 'passwordDescription')}</span> | ||
</f:if> | ||
<label for="{element.uniqueIdentifier}-confirmation">{element.properties.confirmationLabel -> f:translate(id: 'forms.elements.{element.identifier}.confirmationLabel', package: '{element.renderingOptions.translationPackage}') -> f:format.nl2br()}<f:if condition="{element.required}"><f:render partial="Neos.Form:Field/Required" /></f:if></label> | ||
<label for="{element.uniqueIdentifier}-confirmation">{element -> form:translateElementProperty(property: 'confirmationLabel') -> f:format.nl2br()}<f:if condition="{element.required}"><f:render partial="Neos.Form:Field/Required" /></f:if></label> | ||
<f:form.password property="{element.identifier}.confirmation" id="{element.uniqueIdentifier}-confirmation" class="{element.properties.confirmationClassAttribute}" errorClass="{element.properties.elementErrorClassAttribute}" /> | ||
</f:section> |
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
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,6 +1,7 @@ | ||
{namespace form=Neos\Form\ViewHelpers} | ||
<f:if condition="{element.label}"> | ||
<h2>{element.label -> f:translate(id: 'forms.elements.{element.identifier}.label', package: element.renderingOptions.translationPackage)}</h2> | ||
<h2>{element -> form:translateElementProperty(property: 'label')}</h2> | ||
</f:if> | ||
<f:if condition="{element.properties.text}"> | ||
<p{f:if(condition: element.properties.elementClassAttribute, then: ' class="{element.properties.elementClassAttribute}"')}>{element.properties.text -> f:translate(id: 'forms.elements.{element.identifier}.text', package: '{element.renderingOptions.translationPackage}') -> f:format.nl2br()}</p> | ||
<p{f:if(condition: element.properties.elementClassAttribute, then: ' class="{element.properties.elementClassAttribute}"')}>{element -> form:translateElementProperty(property: 'text') -> f:format.nl2br()}</p> | ||
</f:if> |
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