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 @@ - - - - - - - {formvh:translateElementProperty(element: element, property: 'label')} - - + + + {formvh:translateElementProperty(element: element, property: 'label')} + 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 @@ - - - {formvh:translateElementProperty(element: element, property: 'label')} - - - {elementContent} - - - - {formvh:translateElementError(element: element, error: error)} - - - - - - - {formvh:translateElementProperty(element: element, property: 'elementDescription')} + + + {formvh:translateElementProperty(element: element, property: 'label')} - + {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: '{0: \'options\', 1: value}')} - - - - + + {formvh:translateElementProperty(element: element, property: 'label')} + + + + + {formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')} + + + 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 @@ - + - - + + - {formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')} + {formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/SingleSelect.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/SingleSelect.html new file mode 100644 index 00000000..3727aaec --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/SingleSelect.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Text.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Text.html new file mode 100644 index 00000000..3e5cb7f5 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Text.html @@ -0,0 +1,13 @@ + + + + + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Textarea.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Textarea.html new file mode 100644 index 00000000..eb71f989 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Textarea.html @@ -0,0 +1,15 @@ + + + + + + + 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 bd065146..e558ec25 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 @@ -6,99 +6,82 @@ - + - - Name* - - - - - Vorname* - - - - - Gender* - - - - - Firma/Verein - - - - - E-Mail* - - - - - Telefon/Fax* - - - - - Zeitraum - - - - - Aufenthaltsdauer - - - - - Anzahl der Personen - - - - - Durchschnittsalter - - - - - - - - Kinder (ja/nein) + + Name* + + + + + Vorname* + + + + + Gender* + + + + + Firma/Verein* + + + + + E-Mail* + + + + + Telefon/Fax* + + + + + Zeitraum + + + + + Aufenthaltsdauer + + + + + Anzahl der Personen + + + + + Durchschnittsalter + + + + + + + Kinder (ja/nein) - - (Zusatz-) Wünsche - + (Zusatz-) Wünsche + - + + + + Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. - - - Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. - - - + Jetzt anfragen diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/Render.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/Render.html index 62535138..4bb6e9e3 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/Render.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/Render.html @@ -2,9 +2,7 @@ - - - + 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 5d5594ca..b66e9673 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 @@ -9,55 +9,48 @@ - - Geschlecht - - - - - Name - - - - - Vorname - - - - - E-Mail - - - - - Telefon - - - - - Anfrage - + Gender* + + + + + Name* + + + + + Vorname* + + + + + E-Mail* + + + + + Telefon/Fax* + + + + + (Zusatz-) Wünsche + - - - - - Ich habe die + + + Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. - + target="_blank">Datenschutzbestimmungen gelesen und akzeptiert. - + Jetzt anfragen diff --git a/tailwind.config.js b/tailwind.config.js index fd02c26f..7048135f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -25,6 +25,42 @@ module.exports = { fontFamily: { 'sans': [ 'Lato', 'sans-serif' ], }, + customForms: theme => ({ + default: { + 'input, textarea, select, multiselect': { + paddingTop: theme('spacing.4'), + paddingBottom: theme('spacing.4'), + paddingLeft: theme('spacing.8'), + paddingRight: theme('spacing.8'), + borderColor: theme('colors.gray.500'), + borderRadius: undefined, + '&:focus': { + borderColor: undefined, + boxShadow: undefined, + }, + }, + 'checkbox, radio': { + width: theme('spacing.6'), + height: theme('spacing.6'), + backgroundColor: theme('colors.white'), + borderColor: undefined, + '&:focus': { + borderColor: undefined, + boxShadow: undefined, + }, + '&:checked': { + backgroundColor: theme('colors.ep.secondary'), + boxShadow: undefined, + }, + }, + }, + error: { + 'input, textarea, select, multiselect': { + color: theme('colors.red.500'), + borderColor: theme('colors.red.500'), + } + }, + }), extend: { colors: { 'overlay': {