From 303b1b53925ddd404b3877de755ed8ae7c3c28d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 10 Sep 2021 11:08:23 +0200 Subject: [PATCH 1/3] Remove obsolete plugin --- .../Classes/Controller/FormController.php | 12 -- .../Private/Templates/Form/FullForm.html | 108 ------------------ .../typo3conf/ext/ep_theme/ext_localconf.php | 22 ---- 3 files changed, 142 deletions(-) delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html diff --git a/public/typo3conf/ext/ep_theme/Classes/Controller/FormController.php b/public/typo3conf/ext/ep_theme/Classes/Controller/FormController.php index 50d7acac..1a6d44ba 100644 --- a/public/typo3conf/ext/ep_theme/Classes/Controller/FormController.php +++ b/public/typo3conf/ext/ep_theme/Classes/Controller/FormController.php @@ -44,18 +44,6 @@ class FormController extends ActionController $this->view->assign('contactForm', $contactForm); } - /** - * @param ContactForm $contactForm - */ - public function fullFormAction(ContactForm $contactForm = null) - { - if ($contactForm === null) { - $pageUrl = $this->getCurrentPageUrl(); - $contactForm = new ContactForm($pageUrl, ContactForm::FORM_TYPE_FULL); - } - $this->view->assign('contactForm', $contactForm); - } - /** * @return string */ diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html deleted file mode 100644 index c3dcc900..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html +++ /dev/null @@ -1,108 +0,0 @@ -
- - - - - -
- - - - - - - - - - - - - -
- -
- -
- Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. -
-
- -
-
-
- Processing... -
-
-

Vielen Dank für Eure Anfrage. Wir werden uns schnellstmöglich mit Euch in Verbindung - setzen.

-

-
-
-

Es ist ein Problem aufgetreten. Bitte versucht es noch einmal.

-

-
-
-
-
- -
diff --git a/public/typo3conf/ext/ep_theme/ext_localconf.php b/public/typo3conf/ext/ep_theme/ext_localconf.php index 9a21f00c..54a9277d 100644 --- a/public/typo3conf/ext/ep_theme/ext_localconf.php +++ b/public/typo3conf/ext/ep_theme/ext_localconf.php @@ -42,28 +42,6 @@ $metaTagManagerRegistry->registerManager( ] ); -\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( - 'EP.ep_theme', - 'FullForm', - [ - 'Form' => 'fullForm', - ], - [ - 'Form' => 'fullForm', - ] -); - -\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( - 'EP.ep_theme', - 'FullForm', - [ - 'Form' => 'fullForm', - ], - [ - 'Form' => 'fullForm', - ] -); - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'EP.ep_theme', 'Ajax', From 4ce449e8708dcea46efa0f4e468f9ef26a1beabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 10 Sep 2021 11:39:06 +0200 Subject: [PATCH 2/3] Reduce number of selectable form fields, adjust naming --- .../ep_theme/Configuration/Yaml/FormsBase.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public/typo3conf/ext/ep_theme/Configuration/Yaml/FormsBase.yaml b/public/typo3conf/ext/ep_theme/Configuration/Yaml/FormsBase.yaml index 7687bbb7..a6783fed 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/Yaml/FormsBase.yaml +++ b/public/typo3conf/ext/ep_theme/Configuration/Yaml/FormsBase.yaml @@ -6,7 +6,25 @@ TYPO3: 10: EXT:ep_theme/Resources/Private/Forms/ prototypes: standard: + formEditor: + formElementGroups: + input: + label: Basiselemente + html5: + label: HTML5-Elemente + select: + label: Auswahlelemente + custom: + label: Sonstiges formElementsDefinition: + AdvancedPassword: null + DatePicker: null + Fieldset: null + FileUpload: null + GridRow: null + Hidden: null + ImageUpload: null + Password: null Form: renderingOptions: templateRootPaths: From c2571fec458ced3c676565c0520e1a28519e1166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 10 Sep 2021 12:08:59 +0200 Subject: [PATCH 3/3] Improve email layout, replace system email layout --- .../Private/Layouts/Email/Default.html | 35 -- .../Private/Layouts/Email/SystemEmail.html | 384 ++++++++++++++++++ .../Private/Templates/Email/Autoreply.html | 2 +- .../Private/Templates/Email/ContactForm.html | 2 +- .../Private/Templates/Email/GroupsPrice.html | 2 +- 5 files changed, 387 insertions(+), 38 deletions(-) delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/Default.html create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/SystemEmail.html diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/Default.html b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/Default.html deleted file mode 100644 index 5877a26e..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/Default.html +++ /dev/null @@ -1,35 +0,0 @@ - - - HTML E-Mail - - - - - - - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/SystemEmail.html b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/SystemEmail.html new file mode 100644 index 00000000..829dd037 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Email/SystemEmail.html @@ -0,0 +1,384 @@ + + + + + + + + + + + + + +
+
+ + + + + + + + + + +
+ + +
+
+ + + + + + + + + + + +
+ +
+ +
+ + +
+
+ + +
+ + +
+
+ + + + + + + + +
+ + + +
+ + +
+
+ + +
+
+
+ + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/Autoreply.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/Autoreply.html index cbb9c75b..0db083ca 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/Autoreply.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/Autoreply.html @@ -2,7 +2,7 @@ xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> - +

Sehr geehrte Damen und Herren,

diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html index cacd7aec..74c4cd04 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html @@ -2,7 +2,7 @@ xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> - +

Anfrage E&P Reisen vom

diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html index b3247f1b..a91a90dc 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html @@ -2,7 +2,7 @@ xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> - +

Anfrage Gruppenhaus vom