[BUGFIX] Make ConfirmationFinisher available in the FormEditor 66/56666/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 15 Apr 2018 09:11:58 +0000 (11:11 +0200)
committerFrans Saris <franssaris@gmail.com>
Mon, 16 Apr 2018 11:41:27 +0000 (13:41 +0200)
ConfirmationFinisher is available on 8.7 but can't be added
in the FormEditor. Backport relevant parts from master.

Resolves: #84731
Releases: 8.7
Change-Id: Id400ed6f79909d9f8a84cd9f99cde7887d5c3b17
Reviewed-on: https://review.typo3.org/56666
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/form/Configuration/Yaml/FormEditorSetup.yaml
typo3/sysext/form/Resources/Private/Language/Database.xlf

index fc885df..322b371 100644 (file)
@@ -186,6 +186,9 @@ TYPO3:
                       50:
                         value: 'DeleteUploads'
                         label: 'formEditor.elements.Form.editor.finishers.DeleteUploads.label'
+                      60:
+                        value: 'Confirmation'
+                        label: 'formEditor.elements.Form.editor.finishers.Confirmation.label'
 
                 propertyCollections:
                   finishers:
@@ -275,6 +278,11 @@ TYPO3:
                           10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
                         100:
                           label: 'formEditor.elements.Form.finisher.Confirmation.editor.header.label'
+                        300:
+                          identifier: 'message'
+                          templateName: 'Inspector-TextareaEditor'
+                          label: 'formEditor.elements.Form.finisher.Confirmation.editor.message.label'
+                          propertyPath: 'options.message'
 
                     60:
                       identifier: 'Closure'
index c7bdfc6..462225f 100644 (file)
             <trans-unit id="formEditor.elements.Form.editor.finishers.DeleteUploads.label" xml:space="preserve">
                 <source>Delete uploads</source>
             </trans-unit>
+            <trans-unit id="formEditor.elements.Form.editor.finishers.Confirmation.label" xml:space="preserve">
+                <source>Confirmation message</source>
+            </trans-unit>
 
             <trans-unit id="formEditor.elements.Form.finisher.EmailToSender.editor.header.label" xml:space="preserve">
                 <source>Email to sender (form submitter)</source>
             <trans-unit id="formEditor.elements.Form.finisher.DeleteUploads.editor.header.label" xml:space="preserve">
                 <source>Delete uploads</source>
             </trans-unit>
+
             <trans-unit id="formEditor.elements.Form.finisher.Confirmation.editor.header.label" xml:space="preserve">
                 <source>Confirmation message</source>
             </trans-unit>
+            <trans-unit id="formEditor.elements.Form.finisher.Confirmation.editor.message.label" xml:space="preserve">
+                <source>Text</source>
+            </trans-unit>
+
             <trans-unit id="formEditor.elements.Form.finisher.Closure.editor.header.label" xml:space="preserve">
                 <source>Execute a closure</source>
             </trans-unit>