[BUGFIX] Subject field in FormWizard
authorFlorian Scholz <florian.scholz@hmmh.de>
Tue, 15 May 2012 09:30:42 +0000 (11:30 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Mon, 3 Sep 2012 15:05:04 +0000 (17:05 +0200)
Allow setting the subject of an Email
by adding a 3rd input field to the
post processor section of the form tab.

Change-Id: If98fb9de576607a254ba5fcbb72df85584c12037
Releases: 6.0, 4.7, 4.6, 4.5
Resolves: #35787
Reviewed-on: http://review.typo3.org/11245
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/form/Configuration/PageTS/modWizards.ts
typo3/sysext/form/Resources/Private/Language/locallang_wizard.xlf
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Viewport/Left/Form/PostProcessors/PostProcessor.js

index 131eab1..ea09997 100644 (file)
@@ -157,7 +157,7 @@ prefix = tx_form
                                                        showPostProcessors = mail
                                                        postProcessors {
                                                                mail {
-                                                                       showProperties = recipientEmail, senderEmail
+                                                                       showProperties = recipientEmail, senderEmail, subject
                                                                }
                                                        }
                                                }
index 4160585..92c67c0 100644 (file)
                        <trans-unit id="postprocessor_properties_senderemail" xml:space="preserve">
                                <source>Email address of the sender</source>
                        </trans-unit>
+                       <trans-unit id="postprocessor_properties_subject" xml:space="preserve">
+                               <source>Subject</source>
+                       </trans-unit>
                        <trans-unit id="postprocessor_mail" xml:space="preserve">
                                <source>Send email</source>
                        </trans-unit>
index d58f2cb..b01446b 100644 (file)
@@ -91,6 +91,19 @@ TYPO3.Form.Wizard.Viewport.Left.Form.PostProcessors.PostProcessor = Ext.extend(E
                                                }
                                        });
                                        break;
+                               case 'subject':
+                                       formItems.push({
+                                               fieldLabel: TYPO3.l10n.localize('postprocessor_properties_subject'),
+                                               name: 'subject',
+                                               allowBlank: false,
+                                               listeners: {
+                                                       'triggerclick': {
+                                                               scope: this,
+                                                               fn: this.storeValue
+                                                       }
+                                               }
+                                       });
+                                       break;
                        }
                }, this);