Skip to content

Commit

Permalink
Merge pull request #5 from obisconcept/master
Browse files Browse the repository at this point in the history
Some labels formated wrong on Windows
  • Loading branch information
dennisirmscher authored Oct 5, 2016
2 parents 9c20dff + 23a2693 commit b159fbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<f:form.button name="__currentPage" value="{form.nextPage.index}" class="{form.renderingOptions.formNextButtonClassAttribute}">
<f:if condition="{form.renderingOptions.nextButtonLabel}">
<f:then>
{f:translate(id: 'form.nextButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.nextButtonLabel}')}
<f:format.raw>{f:translate(id: 'form.nextButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.nextButtonLabel}')}</f:format.raw>
</f:then>
<f:else>
Next
Expand All @@ -20,7 +20,7 @@
<f:form.button name="__currentPage" value="{form.pages -> f:count()}" class="{form.renderingOptions.formSubmitButtonClassAttribute}">
<f:if condition="{form.renderingOptions.submitButtonLabel}">
<f:then>
{f:translate(id: 'form.submitButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.submitButtonLabel}')}
<f:format.raw>{f:translate(id: 'form.submitButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.submitButtonLabel}')}</f:format.raw>
</f:then>
<f:else>
Submit
Expand All @@ -35,7 +35,7 @@
<f:form.button name="__currentPage" value="{form.previousPage.index}" formnovalidate="formnovalidate" class="{form.renderingOptions.formPrevButtonClassAttribute}">
<f:if condition="{form.renderingOptions.prevButtonLabel}">
<f:then>
{f:translate(id: 'form.prevButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.prevButtonLabel}')}
<f:format.raw>{f:translate(id: 'form.prevButton', source: '{form.renderingOptions.translationSource}', package: '{form.renderingOptions.translationPackage}', value: '{form.renderingOptions.prevButtonLabel}')}</f:format.raw>
</f:then>
<f:else>
Previous
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Form/StaticText.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<f:if condition="{element.label}">
<h2>{element.label}</h2>
</f:if>
<p{f:if(condition: element.properties.elementClassAttribute, then: ' class="{element.properties.elementClassAttribute}"')}>{element.properties.text -> f:format.nl2br()}</p>
<p{f:if(condition: element.properties.elementClassAttribute, then: ' class="{element.properties.elementClassAttribute}"')}><f:format.raw>{element.properties.text -> f:format.nl2br()}</f:format.raw></p>

0 comments on commit b159fbe

Please sign in to comment.