[BUGFIX] EXT:form - Handle values of CHECKBOX and RADIO correctly 90/49290/2
authorBjörn Jacob <bjoern.jacob@tritum.de>
Mon, 1 Aug 2016 16:24:47 +0000 (18:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 2 Aug 2016 13:56:05 +0000 (15:56 +0200)
Show values of CHECKBOX and RADIO elements on confirmation page.
Send values in HTML and plain text mails.

Change-Id: I59e6ed255d70902567812a9f7d9c6550c72f5a2d
Resolves: #76866
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/49290
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Resources/Private/Partials/Default/Confirmation/FlatElements/Checkbox.html
typo3/sysext/form/Resources/Private/Partials/Default/Confirmation/FlatElements/Radio.html
typo3/sysext/form/Resources/Private/Partials/Default/PostProcessor/Mail/Html/FlatElements/Checkbox.html
typo3/sysext/form/Resources/Private/Partials/Default/PostProcessor/Mail/Html/FlatElements/Radio.html
typo3/sysext/form/Resources/Private/Partials/Default/PostProcessor/Mail/Plain/FlatElements/Checkbox.html
typo3/sysext/form/Resources/Private/Partials/Default/PostProcessor/Mail/Plain/FlatElements/Radio.html

index a22276f..6444f8d 100644 (file)
@@ -2,6 +2,7 @@
        <f:if condition="{model.additionalArguments.checked} == 'checked'">
                <li class="csc-form-{model.elementCounter} csc-form-element csc-form-element-{model.elementTypeLowerCase}">
                        <label>{model.additionalArguments.label}</label>
+                       <f:if condition="{model.additionalArguments.value}">{model.additionalArguments.value}</f:if>
                </li>
        </f:if>
 </f:if>
index dc584e6..406c802 100644 (file)
@@ -2,6 +2,7 @@
        <f:if condition="{model.additionalArguments.checked} == 'checked'">
                <li class="csc-form-{model.elementCounter} csc-form-element csc-form-element-{model.elementTypeLowerCase}">
                        <label>{model.additionalArguments.label}</label>
+                       <f:if condition="{model.additionalArguments.value}">{model.additionalArguments.value}</f:if>
                </li>
        </f:if>
 </f:if>
index 6667a15..574e19a 100644 (file)
@@ -1 +1 @@
-{namespace form=TYPO3\CMS\Form\ViewHelpers}<f:if condition="{model.showElement}"><f:if condition="{model.additionalArguments.checked} == 'checked'"><form:plainMail labelContent="{model}" /></f:if></f:if>
+namespace form=TYPO3\CMS\Form\ViewHelpers}<f:if condition="{model.showElement}"><f:if condition="{model.additionalArguments.checked} == 'checked'"><form:plainMail labelContent="{model}" content="{model.additionalArguments.value}" /></f:if></f:if>
index 051749e..73e0941 100644 (file)
@@ -1,2 +1,2 @@
-{namespace form=TYPO3\CMS\Form\ViewHelpers}<f:if condition="{model.showElement}"><f:if condition="{model.additionalArguments.checked} == 'checked'"><form:plainMail labelContent="{model}" />
+{namespace form=TYPO3\CMS\Form\ViewHelpers}<f:if condition="{model.showElement}"><f:if condition="{model.additionalArguments.checked} == 'checked'"><form:plainMail labelContent="{model}" content="{model.additionalArguments.value}" />
 </f:if></f:if>
\ No newline at end of file