From 8b22da7ae01d010fe34c7fec5b1df59ef101ec06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 23 Sep 2020 21:03:23 +0200 Subject: [PATCH 1/3] WIP Migrate form styles to tailwind --- .../Private/Partials/Form/Checkbox.html | 24 ++- .../Private/Partials/Form/Field/Field.html | 23 +-- .../Private/Partials/Form/Fieldset.html | 12 ++ .../Private/Partials/Form/MultiCheckbox.html | 38 ++--- .../Private/Partials/Form/MultiSelect.html | 33 ++++ .../Private/Partials/Form/RadioButton.html | 11 +- .../Private/Partials/Form/SingleSelect.html | 30 ++++ .../Resources/Private/Partials/Form/Text.html | 13 ++ .../Private/Partials/Form/Textarea.html | 15 ++ .../Private/Templates/Form/FullForm.html | 149 ++++++++---------- .../Private/Templates/Form/Render.html | 4 +- .../Private/Templates/Form/SimpleForm.html | 79 +++++----- tailwind.config.js | 36 +++++ 13 files changed, 280 insertions(+), 187 deletions(-) create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Fieldset.html create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiSelect.html create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/SingleSelect.html create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Text.html create mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Textarea.html diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Checkbox.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Checkbox.html index a8700b66..cef99772 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Checkbox.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Checkbox.html @@ -1,20 +1,16 @@ -
- -
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html index f8dfc411..a2f03840 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html @@ -1,23 +1,10 @@ -
- - - - - {elementContent} - - - - {formvh:translateElementError(element: element, error: error)} -
-
-
-
-
- - {formvh:translateElementProperty(element: element, property: 'elementDescription')} +
+ {elementContent -> f:format.raw()} +
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Fieldset.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Fieldset.html new file mode 100644 index 00000000..52071707 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Fieldset.html @@ -0,0 +1,12 @@ + + +
+ + {formvh:translateElementProperty(element: element, property: 'label')} + + + + +
+
+ diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiCheckbox.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiCheckbox.html index 0470e372..1a6e93f7 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiCheckbox.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiCheckbox.html @@ -1,26 +1,22 @@ - -
- -
- -
-
-
+ + {formvh:translateElementProperty(element: element, property: 'label')} + +
+ +
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiSelect.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiSelect.html new file mode 100644 index 00000000..a08e069a --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/MultiSelect.html @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/RadioButton.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/RadioButton.html index c6cd4693..befa1d7e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/RadioButton.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/RadioButton.html @@ -1,17 +1,18 @@ - + -
-