From 622c01afa0813ff7631184daeffe0e6384247f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 21 Aug 2021 13:13:44 +0200 Subject: [PATCH] WIP Migrate contact forms --- .../js/controllers/contactform_controller.js | 12 +++ .../Private/Partials/ContactForm/Error.html | 12 +++ .../Private/Partials/ContactForm/Full.html | 53 ++++++++-- .../Private/Partials/ContactForm/Simple.html | 57 ++++++++++ .../Private/Partials/ContactForm/Success.html | 18 ++++ .../Private/Templates/AjaxForm/FullForm.html | 2 +- .../Templates/AjaxForm/SimpleForm.html | 11 +- .../Private/Templates/Form/FullForm.html | 100 ++---------------- .../Private/Templates/Form/SimpleForm.html | 69 ++---------- 9 files changed, 157 insertions(+), 177 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/contactform_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/contactform_controller.js index e69de29b..c3122595 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/contactform_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/contactform_controller.js @@ -0,0 +1,12 @@ +import { Controller } from 'stimulus' + +export default class extends Controller { + + static targets = [ 'form', 'container' ] + + static values = { loading: Boolean } + + submit(e) { + + } +} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html index 0fe4b966..f2d586b5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html @@ -2,4 +2,16 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> +
+

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

+

+ +

+
+ diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html index 946680a2..7731c7cf 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html @@ -11,38 +11,69 @@ Betreff* - + + + + + + +
+ +
Ich habe die + + + + + + + + + + +
+ Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. +
+
+ +
+
+ + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html index e69de29b..6aab0343 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html @@ -0,0 +1,18 @@ + + +
+

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

+

+ +

+
+ + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/FullForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/FullForm.html index 02202f64..57808447 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/FullForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/FullForm.html @@ -5,7 +5,7 @@ - +
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/SimpleForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/SimpleForm.html index c86f90c7..02202f64 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/SimpleForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxForm/SimpleForm.html @@ -5,16 +5,7 @@ -
-
- -
- -
+
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 index 037be6ca..b540b24a 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html @@ -5,101 +5,15 @@ -
- - - - - - - - - - - - - -
- -
- -
- Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. -
-
- -
-
-
+
+
+ +
+ -
-

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/Resources/Private/Templates/Form/SimpleForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/SimpleForm.html index fa2becd6..b905bcec 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/SimpleForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/SimpleForm.html @@ -5,70 +5,15 @@ -
- - - - - - - - - -
- Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. -
-
- -
-
-
+
+
+ +
+ -
-

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.

-

-