feat: forms on TYPO3 13, loaded into the static pages with htmx
The static export replaced every EXT:form form with a contact notice. The forms are back, rendered by TYPO3 13 and embedded in the static pages: - Page type 1704 (/<page>/form) renders only the form plugin of a page, inside a .form-island element. Every form posts to that URL (renderingOptions.additionalParams), because on www the page URL is a static file that never reaches TYPO3. htmx swaps the island in place: validation errors, multi-step pages and confirmations. A redirect to an htmx request becomes HX-Redirect (HtmxRedirectMiddleware), so Redirect finishers send the browser to the thank-you page. - While a request runs, an overlay with a spinner (as in MyE&P) covers the form. Styled inside the island: the static pages load the CSS of the TYPO3 10 export. - The bw_captcha image comes from /<page>/captcha for the same reason. Both suffixes are in the PageType enhancer of every site with forms (semesterende gets one with default '' to keep its URLs). - Ported from TYPO3 10: form setup, templates and partials, the MyE&P address finisher, the job application finisher with the MyE&P Team API client (epTeamApi* in secrets.php), the page URL/referrer finisher with ReferrerMiddleware (?ref=), the e-mail layout without the system footer, bw_captcha 5 and form_element_linked_checkbox 6. The address check forms are dropped. - German language packs (EXT:form messages): availableLanguages = de, fetched on every deploy (typo3:language:update). - The checkbox partials passed null to VHS' substring, which PHP 8.5 reports as deprecated. - DDEV no longer turns deprecations into exceptions, matching production: EXT:form's RenderFormValueViewHelper uses null as an array offset for empty optional fields (core bug, also in 13.4.37). The static pages get their placeholders from the exporter in EP/website, see .ddev/plans/static-export-form-islands.patch (local only). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
59e4a2d49b
commit
925e24397b
54 files changed
+2500
-3
No files matched your search
@@ -0,0 +1,378 @@
|
||||
|
||||
renderingOptions:
|
||||
submitButtonLabel: Absenden
|
||||
type: Form
|
||||
identifier: applicationform
|
||||
label: Bewerbungsformular
|
||||
prototypeName: applicationform
|
||||
finishers:
|
||||
-
|
||||
options:
|
||||
subject: 'Bewerbung von {text-1}'
|
||||
recipientAddress: [email protected]
|
||||
recipientName: 'E&P Reisen'
|
||||
senderAddress: [email protected]
|
||||
senderName: '{text-1}'
|
||||
replyToAddress: '{text-6}'
|
||||
carbonCopyAddress: ''
|
||||
blindCarbonCopyAddress: ''
|
||||
format: html
|
||||
attachUploads: false
|
||||
translation:
|
||||
language: ''
|
||||
identifier: EmailToReceiver
|
||||
-
|
||||
options:
|
||||
message: 'Vielen Dank für deine Bewerbung. Wir werden sie so schnell wie möglich bearbeiten.'
|
||||
identifier: Confirmation
|
||||
renderables:
|
||||
-
|
||||
renderingOptions:
|
||||
previousButtonLabel: zurück
|
||||
nextButtonLabel: weiter
|
||||
type: Page
|
||||
identifier: page-1
|
||||
label: ''
|
||||
renderables:
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-1
|
||||
label: Name
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Vor- & Nachname'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-2
|
||||
label: Straße
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Straße & Hausnummer'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-3
|
||||
label: Wohnort
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'PLZ & Ort'
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-4
|
||||
label: 'Mobil Nummer'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-5
|
||||
label: 'Festnetz Nummer'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-6
|
||||
label: 'E-Mail Adresse'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
identifier: EmailAddress
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-7
|
||||
label: Geburtsdatum
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: tt.mm.jjjj
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
options:
|
||||
regularExpression: '/\d{2}\.\d{2}\.\d{4}/'
|
||||
identifier: RegularExpression
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-8
|
||||
label: Nationalität
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
nein: nein
|
||||
ja: ja
|
||||
'ja, mit Anhänger': 'ja, mit Anhänger'
|
||||
type: RadioButton
|
||||
identifier: radiobutton-1
|
||||
label: Führerschein
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-9
|
||||
label: Ausbildung/Studium
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Schul-, Uni-, Berufsausbildung'
|
||||
elementDescription: ''
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-10
|
||||
label: 'Aktuelle Tätigkeit'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
Haus-/Destinationsleitung: Haus-/Destinationsleitung
|
||||
Koch/Köchin: Koch/Köchin
|
||||
Koch-Assistenz/Service: Koch-Assistenz/Service
|
||||
'Serviceleitung/Assistenz Hausleitung': 'Serviceleitung/Assistenz Hausleitung'
|
||||
Serviceteamer: Serviceteamer
|
||||
Reinigungskraft: Reinigungskraft
|
||||
Materialteamer/Verleih: Materialteamer/Verleih
|
||||
Allrounder: Allrounder
|
||||
'Praktikum im Schnee': 'Praktikum im Schnee'
|
||||
elementDescription: ''
|
||||
type: MultiCheckbox
|
||||
identifier: multicheckbox-1
|
||||
label: 'Bewerbung als'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-11
|
||||
label: 'Einsatz datum'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'von tt.mm.jjjj bis tt.mm.jjjj'
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
Ski: Ski
|
||||
Snowboard: Snowboard
|
||||
nichts: nichts
|
||||
type: MultiCheckbox
|
||||
identifier: multicheckbox-2
|
||||
label: 'Ich fahre'
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
options:
|
||||
minimum: '1'
|
||||
maximum: '2'
|
||||
identifier: Count
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
'noch nicht gelernt': 'noch nicht gelernt'
|
||||
Anfänger: Anfänger
|
||||
Fortgeschritten: Fortgeschritten
|
||||
Experte: Experte
|
||||
type: SingleSelect
|
||||
identifier: singleselect-1
|
||||
label: 'Wie gut fahre ich Ski'
|
||||
defaultValue: 'noch nicht gelernt'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-12
|
||||
label: 'Skifahrer seit'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
'noch nicht gelernt': 'noch nicht gelernt'
|
||||
Anfänger: Anfänger
|
||||
Fortgeschritten: Fortgeschritten
|
||||
Experte: Experte
|
||||
type: SingleSelect
|
||||
identifier: singleselect-2
|
||||
label: 'Wie gut fahre ich Snowboard'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-13
|
||||
label: 'Snowboarder seit'
|
||||
properties:
|
||||
elementDescription: ''
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
nein: nein
|
||||
'Ski Grundstufe': 'Ski Grundstufe'
|
||||
'Board Grundstufe': 'Board Grundstufe'
|
||||
'Ski Instructor': 'Ski Instructor'
|
||||
'Board Instructor': 'Board Instructor'
|
||||
'Ski Begleitschein': 'Ski Begleitschein'
|
||||
'Board Begleitschein': 'Board Begleitschein'
|
||||
type: MultiSelect
|
||||
identifier: multiselect-1
|
||||
label: Ski-/Snowboardlehrerschein
|
||||
defaultValue:
|
||||
- nein
|
||||
-
|
||||
type: Fieldset
|
||||
identifier: fieldset-1
|
||||
label: Fremdsprachen
|
||||
renderables:
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
nein: nein
|
||||
Grundkenntnisse: Grundkenntnisse
|
||||
gut: gut
|
||||
'sehr gut': 'sehr gut'
|
||||
type: SingleSelect
|
||||
identifier: singleselect-3
|
||||
label: Englisch
|
||||
defaultValue: nein
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
nein: nein
|
||||
Grundkenntnisse: Grundkenntnisse
|
||||
gut: gut
|
||||
'sehr gut': 'sehr gut'
|
||||
type: SingleSelect
|
||||
identifier: singleselect-4
|
||||
label: Französisch
|
||||
defaultValue: nein
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
nein: nein
|
||||
Grundkenntnisse: Grundkenntnisse
|
||||
gut: gut
|
||||
'sehr gut': 'sehr gut'
|
||||
type: SingleSelect
|
||||
identifier: singleselect-5
|
||||
label: Spanisch
|
||||
defaultValue: nein
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-14
|
||||
label: 'Sonstige Fremdsprachen'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
ja: ja
|
||||
nein: nein
|
||||
type: RadioButton
|
||||
identifier: radiobutton-2
|
||||
label: 'Kocherfahrung für Gruppen (min. 30 Personen)'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-15
|
||||
label: 'Wenn ja, welche?'
|
||||
properties:
|
||||
elementDescription: ''
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
ja: ja
|
||||
nein: nein
|
||||
type: RadioButton
|
||||
identifier: radiobutton-3
|
||||
label: 'Erfahrungen im Tourismus'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: text-16
|
||||
label: 'Wenn ja, welche?'
|
||||
properties:
|
||||
elementDescription: ''
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
'ja, mit Zertifikat zur Bindungseinstellung': 'ja, mit Zertifikat zur Bindungseinstellung'
|
||||
nein: nein
|
||||
type: RadioButton
|
||||
identifier: radiobutton-4
|
||||
label: 'Erfahrungen im Skiverleih'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
Zillertal: Zillertal
|
||||
Lenzerheide: Lenzerheide
|
||||
'Davos Klosters': 'Davos Klosters'
|
||||
Montafon: Montafon
|
||||
Saalbach: Saalbach
|
||||
'Les Deux Alpes': 'Les Deux Alpes'
|
||||
'4 Vallées': '4 Vallées'
|
||||
'Val Thorens': 'Val Thorens'
|
||||
'Les Sybelles': 'Les Sybelles'
|
||||
'Portes du Soleil': 'Portes du Soleil'
|
||||
type: MultiCheckbox
|
||||
identifier: multicheckbox-3
|
||||
label: 'Ortskenntnisse in folgenden Destinationen'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
'Damen 36': 'Damen 36'
|
||||
'Damen 38': 'Damen 38'
|
||||
'Damen 40': 'Damen 40'
|
||||
'Damen 42': 'Damen 42'
|
||||
'Herren S': 'Herren S'
|
||||
'Herren M': 'Herren M'
|
||||
'Herren L': 'Herren L'
|
||||
'Herren XL': 'Herren XL'
|
||||
type: SingleSelect
|
||||
identifier: singleselect-6
|
||||
label: Jackengröße
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Textarea
|
||||
identifier: textarea-1
|
||||
label: 'Warum möchte ich für E&P Reisen arbeiten?'
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
Freunde: Freunde
|
||||
'Social Media': 'Social Media'
|
||||
Uni: Uni
|
||||
Sonstiges: Sonstiges
|
||||
type: MultiCheckbox
|
||||
identifier: multicheckbox-4
|
||||
label: 'Wie bin ich auf E&P Reisen aufmerksam geworden?'
|
||||
-
|
||||
type: LinkedCheckbox
|
||||
identifier: privacypolicyaccepted
|
||||
label: 'Ich akzeptiere die %s.'
|
||||
properties:
|
||||
pageUid: '355'
|
||||
linkText: 'Datenschutzbestimmungen'
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
@@ -0,0 +1,148 @@
|
||||
|
||||
renderingOptions:
|
||||
submitButtonLabel: Absenden
|
||||
type: Form
|
||||
identifier: contactform
|
||||
label: Kontaktformular
|
||||
prototypeName: contactform
|
||||
finishers:
|
||||
-
|
||||
identifier: BpnApiFinisher
|
||||
options:
|
||||
mapping: 'lastName:lastName,firstName:firstName,gender:gender,email:email,street:street,zipCode:zipCode,city:city,phone:phone'
|
||||
-
|
||||
options:
|
||||
subject: 'Kontaktanfrage von {firstName} {lastName}'
|
||||
recipientAddress: [email protected]
|
||||
recipientName: 'E&P Reisen'
|
||||
senderAddress: [email protected]
|
||||
senderName: '{firstName} {lastName}'
|
||||
replyToAddress: '{email}'
|
||||
carbonCopyAddress: ''
|
||||
blindCarbonCopyAddress: ''
|
||||
format: html
|
||||
attachUploads: false
|
||||
translation:
|
||||
language: ''
|
||||
identifier: EmailToReceiver
|
||||
-
|
||||
options:
|
||||
pageUid: '1387'
|
||||
additionalParameters: ''
|
||||
identifier: Redirect
|
||||
renderables:
|
||||
-
|
||||
renderingOptions:
|
||||
previousButtonLabel: 'Previous step'
|
||||
nextButtonLabel: 'Neue Seite'
|
||||
type: Page
|
||||
identifier: page-1
|
||||
label: ''
|
||||
renderables:
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: firstName
|
||||
label: Vorname
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Vorname'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: lastName
|
||||
label: 'Nachname'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Nachname'
|
||||
required: required
|
||||
elementDescription: ''
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
properties:
|
||||
options:
|
||||
M: M
|
||||
W: W
|
||||
D: D
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
type: SingleSelect
|
||||
identifier: gender
|
||||
label: 'Gender'
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: email
|
||||
label: 'E-Mail'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
identifier: EmailAddress
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: street
|
||||
label: 'Straße'
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
placeholder: 'Straße & Nr.'
|
||||
elementDescription: ''
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: zipCode
|
||||
label: 'PLZ'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: city
|
||||
label: 'Ort'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: phone
|
||||
label: 'Telefon'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Textarea
|
||||
identifier: message
|
||||
label: 'Deine Kontaktanfrage'
|
||||
-
|
||||
defaultValue: ''
|
||||
type: Text
|
||||
identifier: bookingNumber
|
||||
label: 'Buchungsnummer (falls vorhanden)'
|
||||
-
|
||||
type: LinkedCheckbox
|
||||
identifier: privacypolicyaccepted
|
||||
label: 'Ich akzeptiere die %s.'
|
||||
properties:
|
||||
pageUid: '355'
|
||||
linkText: 'Datenschutzbestimmungen'
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
validators:
|
||||
-
|
||||
identifier: NotEmpty
|
||||
-
|
||||
type: Captcha
|
||||
identifier: captcha
|
||||
label: Captcha
|
||||
properties:
|
||||
fluidAdditionalAttributes:
|
||||
required: required
|
||||
autocomplete: 'off'
|
||||
@@ -0,0 +1,388 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true" >
|
||||
<head>
|
||||
<!--[if gte mso 15]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title></title>
|
||||
<style type="text/css">
|
||||
p {
|
||||
margin:10px 0;
|
||||
padding:0;
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display:block;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
img,
|
||||
a img {
|
||||
border:0;
|
||||
height:auto;
|
||||
outline:none;
|
||||
text-decoration:none;
|
||||
}
|
||||
body,
|
||||
#bodyTable,
|
||||
#bodyCell {
|
||||
height:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
width:100%;
|
||||
}
|
||||
#outlook a {
|
||||
padding:0;
|
||||
}
|
||||
img {
|
||||
-ms-interpolation-mode:bicubic;
|
||||
}
|
||||
table {
|
||||
mso-table-lspace:0pt;
|
||||
mso-table-rspace:0pt;
|
||||
}
|
||||
.ReadMsgBody {
|
||||
width:100%;
|
||||
}
|
||||
.ExternalClass {
|
||||
width:100%;
|
||||
}
|
||||
p,
|
||||
a,
|
||||
td {
|
||||
mso-line-height-rule:exactly;
|
||||
}
|
||||
a[href^=tel],
|
||||
a[href^=sms] {
|
||||
color:inherit;
|
||||
cursor:default;
|
||||
text-decoration:none;
|
||||
}
|
||||
p,
|
||||
a,
|
||||
td,
|
||||
body,
|
||||
table,
|
||||
blockquote {
|
||||
-ms-text-size-adjust:100%;
|
||||
-webkit-text-size-adjust:100%;
|
||||
}
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font {
|
||||
line-height:100%;
|
||||
}
|
||||
a[x-apple-data-detectors]{
|
||||
color:inherit !important;
|
||||
text-decoration:none !important;
|
||||
font-size:inherit !important;
|
||||
font-family:inherit !important;
|
||||
font-weight:inherit !important;
|
||||
line-height:inherit !important;
|
||||
}
|
||||
|
||||
.templateContainer {
|
||||
max-width:600px !important;
|
||||
}
|
||||
a.button {
|
||||
display:block;
|
||||
}
|
||||
.image,.retinaImage {
|
||||
vertical-align:bottom;
|
||||
}
|
||||
.textContent {
|
||||
word-break:break-word;
|
||||
}
|
||||
.textContent img {
|
||||
height:auto !important;
|
||||
}
|
||||
.dividerBlock {
|
||||
table-layout:fixed !important;
|
||||
}
|
||||
h1 {
|
||||
color:#222222;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:40px;
|
||||
font-style:normal;
|
||||
font-weight:bold;
|
||||
line-height:150%;
|
||||
letter-spacing:normal;
|
||||
text-align:center;
|
||||
}
|
||||
h2 {
|
||||
color:#222222;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:34px;
|
||||
font-style:normal;
|
||||
font-weight:bold;
|
||||
line-height:150%;
|
||||
letter-spacing:normal;
|
||||
text-align:left;
|
||||
}
|
||||
h3 {
|
||||
color:#444444;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:22px;
|
||||
font-style:normal;
|
||||
font-weight:bold;
|
||||
line-height:150%;
|
||||
letter-spacing:normal;
|
||||
text-align:left;
|
||||
}
|
||||
h4 {
|
||||
color:#999999;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:20px;
|
||||
font-style:italic;
|
||||
font-weight:normal;
|
||||
line-height:125%;
|
||||
letter-spacing:normal;
|
||||
text-align:left;
|
||||
}
|
||||
#templateHeader {
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:0;
|
||||
border-bottom:0;
|
||||
padding-top:36px;
|
||||
padding-bottom:0;
|
||||
}
|
||||
.headerContainer {
|
||||
background-color:#ffffff;
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:1px none ;
|
||||
border-bottom:0;
|
||||
padding-top:36px;
|
||||
padding-bottom:36px;
|
||||
}
|
||||
.headerContainer .textContent,
|
||||
.headerContainer .textContent p {
|
||||
color:#808080;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:16px;
|
||||
line-height:150%;
|
||||
text-align:left;
|
||||
}
|
||||
.headerContainer .textContent a,
|
||||
.headerContainer .textContent p a {
|
||||
color:#538bb3;
|
||||
font-weight:normal;
|
||||
text-decoration:underline;
|
||||
}
|
||||
#templateBody {
|
||||
background-color:#f2f2f2;
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:0;
|
||||
border-bottom:0;
|
||||
padding-top:0;
|
||||
padding-bottom:0;
|
||||
}
|
||||
.bodyContainer {
|
||||
background-color:#ffffff;
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:0;
|
||||
border-bottom:0;
|
||||
padding-top:0;
|
||||
padding-bottom:18px;
|
||||
}
|
||||
.bodyContainer .textContent,
|
||||
.bodyContainer .textContent p {
|
||||
color:#808080;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:16px;
|
||||
line-height:150%;
|
||||
text-align:left;
|
||||
}
|
||||
.bodyContainer .textContent a,
|
||||
.bodyContainer .textContent p a {
|
||||
color:#538bb3;
|
||||
font-weight:normal;
|
||||
text-decoration:underline;
|
||||
}
|
||||
#templateFooter{
|
||||
background-color:#f2f2f2;
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:1px none ;
|
||||
border-bottom:0;
|
||||
padding-top:0;
|
||||
padding-bottom:36px;
|
||||
}
|
||||
.footerContainer{
|
||||
background-color:#313131;
|
||||
background-image:none;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
background-size:cover;
|
||||
border-top:0;
|
||||
border-bottom:0;
|
||||
padding-top:45px;
|
||||
padding-bottom:45px;
|
||||
}
|
||||
.footerContainer .textContent,
|
||||
.footerContainer .textContent p {
|
||||
color:#FFFFFF;
|
||||
font-family:'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
|
||||
font-size:12px;
|
||||
line-height:150%;
|
||||
text-align:center;
|
||||
}
|
||||
.footerContainer .textContent a,
|
||||
.footerContainer .textContent p a {
|
||||
color:#FFFFFF;
|
||||
font-weight:normal;
|
||||
text-decoration:underline;
|
||||
}
|
||||
table.data th,
|
||||
table.data td {
|
||||
vertical-align: top;
|
||||
}
|
||||
@media only screen and (min-width:768px){
|
||||
.templateContainer {
|
||||
width:600px !important;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 480px){
|
||||
body,
|
||||
table,
|
||||
td,
|
||||
p,
|
||||
a {
|
||||
-webkit-text-size-adjust:none !important;
|
||||
}
|
||||
body {
|
||||
width:100% !important;
|
||||
min-width:100% !important;
|
||||
}
|
||||
h1 {
|
||||
font-size:30px !important;
|
||||
line-height:125% !important;
|
||||
}
|
||||
h2 {
|
||||
font-size:26px !important;
|
||||
line-height:125% !important;
|
||||
}
|
||||
h3 {
|
||||
font-size:20px !important;
|
||||
line-height:150% !important;
|
||||
}
|
||||
h4 {
|
||||
font-size:18px !important;
|
||||
line-height:150% !important;
|
||||
}
|
||||
.headerContainer .textContent,
|
||||
.headerContainer .textContent p {
|
||||
font-size:16px !important;
|
||||
line-height:150% !important;
|
||||
}
|
||||
.bodyContainer .textContent,
|
||||
.bodyContainer .textContent p {
|
||||
font-size:16px !important;
|
||||
line-height:150% !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<center>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"><tr><td align="center" valign="top" id="bodyCell">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
|
||||
<!-- HEADER START -->
|
||||
<tr><td align="center" valign="top" id="templateHeader" style="background-color: #ffffff">
|
||||
|
||||
<!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"><tr><td align="center" valign="top" width="600" style="width:600px;"><![endif]-->
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"><tr><td valign="top" class="headerContainer">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="textBlock" style="min-width:100%;"><tbody class="textBlockOuter"><tr><td valign="top" class="textBlockInner" style="padding-top:9px;">
|
||||
|
||||
<!--[if mso]><table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"><tr><td valign="top" width="600" style="width:600px;"><![endif]-->
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="textContentContainer">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td valign="top" class="image" align="center" style="padding: 0px 36px; padding-bottom: 20px; color: #222222;text-align: center;">
|
||||
<f:image src="EXT:ep_theme/Resources/Public/images/logo_wide.svg" absolute="1" alt="Logo" height="60" width="197" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="textContent" style="padding: 0px 36px;color: #222222;font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;font-size: 24px;text-align: center;">
|
||||
<strong><f:render section="Title" optional="true" /></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--[if mso]></td></tr></table><![endif]-->
|
||||
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></table>
|
||||
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
|
||||
|
||||
</td></tr>
|
||||
<!-- HEADER END -->
|
||||
|
||||
|
||||
<!-- BODY START -->
|
||||
<tr><td align="center" valign="top" id="templateBody">
|
||||
|
||||
<!--[if (gte mso 9)|(IE)]><table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"><tr><td align="center" valign="top" width="600" style="width:600px;"><![endif]-->
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"><tr><td valign="top" class="bodyContainer">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="textBlock" style="min-width:100%;"><tbody class="textBlockOuter"><tr><td valign="top" class="textBlockInner" style="padding: 36px 0px;">
|
||||
|
||||
<!--[if mso]><table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"><tr><td valign="top" width="600" style="width:600px;"><![endif]-->
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="textContentContainer">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td valign="top" class="textContent" style="padding: 0px 36px;">
|
||||
|
||||
<f:render section="Main" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--[if mso]></td></tr></table><![endif]-->
|
||||
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></table>
|
||||
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
|
||||
|
||||
</td></tr>
|
||||
<!-- BODY END -->
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</center>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
<f:spaceless><f:render section="Title" optional="true" />
|
||||
<f:render section="Main" /></f:spaceless>
|
||||
@@ -0,0 +1 @@
|
||||
<f:render section="Main"/>
|
||||
@@ -0,0 +1,34 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true">
|
||||
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<div class="flex items-center space-x-2">
|
||||
<f:form.textfield property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
value=""
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
placeholder="Bitte die Zeichen aus der Grafik eingeben"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"/>
|
||||
<img src="{f:uri.page(pageType:3413)}" alt="Captcha image" loading="lazy" onload="this.parentElement.classList.remove('captcha--reloading'); return false;"/>
|
||||
<f:if condition="{element.properties.showRefresh}">
|
||||
<button type="button"
|
||||
class="captcha__reload"
|
||||
aria-label="Captcha neu laden"
|
||||
data-url="{f:uri.page(pageType:3413)}"
|
||||
onclick="const div = this.parentElement; div.classList.add('captcha--reloading', 'captcha--spin'); let captchaUrl = this.dataset.url; this.previousElementSibling.setAttribute('src', captchaUrl + (/\?/.test(captchaUrl) ? '&' : '?') + 'now=' + Date.now()); setTimeout(function(){div.classList.remove('captcha--spin')},400); return false;">
|
||||
<span class="sr-only">Captcha neu laden</span>
|
||||
<svg width="31" height="28" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="#000" fill-rule="evenodd">
|
||||
<path d="M10 10.7 6.3 8.5a11 11 0 0 1 20 3l2.5-.8h.4v-.3A14 14 0 0 0 3.6 7L.3 5l1.8 8.3 8-2.6ZM31 23l-1.7-8-8 2.5 3.7 2.1a10.9 10.9 0 0 1-19.8-2.3l-2 .6-1 .3a13.9 13.9 0 0 0 17 9.3 14 14 0 0 0 8.4-6.4l3.4 2Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
</button>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers"
|
||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
|
||||
<f:if condition="{v:format.substring(start: 0, length: 1, content: '{element.label}')} == '*'">
|
||||
<f:then>
|
||||
<f:variable name="labelClass" value="ml-2 font-bold"/>
|
||||
<f:variable name="labelString" value="{v:format.substring(start: 1, content: '{element.label}')}"/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:variable name="labelClass" value="ml-2"/>
|
||||
<f:variable name="labelString" value="{element.label}"/>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<label class="inline-flex items-center">
|
||||
<f:form.checkbox
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
value="{element.properties.value}"
|
||||
class="form-checkbox"
|
||||
errorClass="form-checkbox--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
<span class="{labelClass}">{labelString}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
|
||||
</label>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:if condition="{element.rootForm.renderingOptions.previewMode}">
|
||||
<f:then>
|
||||
<f:if condition="{element.properties.contentElementUid}">
|
||||
<f:then>
|
||||
<formvh:be.renderContentElementPreview contentElementUid="{element.properties.contentElementUid}" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formEditor.elements.ContentElement.selectContentElement" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{element.properties.contentElementUid}">
|
||||
<f:cObject typoscriptObjectPath="lib.tx_form.contentElementRendering">{element.properties.contentElementUid}</f:cObject>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textfield
|
||||
type="date"
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textfield
|
||||
type="email"
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:form.validationResults for="{element.rootForm.identifier}.{element.identifier}">
|
||||
<label class="block mb-4">
|
||||
<f:if condition="{doNotShowLabel} != 1">
|
||||
<span class="{f:if(condition: '{validationResults.errors.0}', then: 'text-red-500', else: 'text-zinc-700')}">{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
|
||||
</f:if>
|
||||
{elementContent -> f:format.raw()}
|
||||
<f:if condition="{validationResults.flattenedErrors}">
|
||||
<div class="text-red-500 mt-2" role="alert">
|
||||
<f:for each="{validationResults.errors}" as="error">
|
||||
<f:format.htmlspecialchars>{formvh:translateElementError(element: element, error: error)}</f:format.htmlspecialchars>
|
||||
<br />
|
||||
</f:for>
|
||||
</div>
|
||||
</f:if>
|
||||
</label>
|
||||
</f:form.validationResults>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<fieldset id="{element.uniqueIdentifier}" class="{f:if(condition: element.properties.elementClassAttribute, then: ' {element.properties.elementClassAttribute}')}">
|
||||
<f:if condition="{element.label}">
|
||||
<legend class="pb-2 mb-2 border-b border-zinc-400">{formvh:translateElementProperty(element: element, property: 'label')}</legend>
|
||||
</f:if>
|
||||
<f:for each="{element.elements}" as="element">
|
||||
<f:render partial="{element.templateName}" arguments="{element: element}" />
|
||||
</f:for>
|
||||
</fieldset>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<nav class="form-navigation">
|
||||
<div class="button-group" role="group">
|
||||
<f:if condition="{form.previousPage}">
|
||||
<f:form.hidden property="__currentPage" value="{form.previousPage.index}" />
|
||||
<f:form.button type="button" onclick="this.form.noValidate = true; this.form.requestSubmit();" class="button bg-button" formnovalidate="formnovalidate">{formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'previousButtonLabel')}</f:form.button>
|
||||
</f:if>
|
||||
<f:if condition="{form.nextPage}">
|
||||
<f:then>
|
||||
<f:form.button property="__currentPage"
|
||||
value="{form.nextPage.index}"
|
||||
data="{'form-debounce-target': 'button'}"
|
||||
class="button bg-button">
|
||||
{formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'nextButtonLabel')}
|
||||
</f:form.button>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.button property="__currentPage"
|
||||
value="{form.pages -> f:count()}"
|
||||
data="{'form-debounce-target': 'button'}"
|
||||
class="button bg-button">
|
||||
{formvh:translateElementProperty(element: form, renderingOptionProperty: 'submitButtonLabel')}
|
||||
</f:form.button>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</div>
|
||||
</nav>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
|
||||
<label class="inline-flex items-center">
|
||||
<f:form.checkbox
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-checkbox"
|
||||
errorClass="form-checkbox--has-error"
|
||||
value="{element.properties.value}"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
<span class="ml-2">
|
||||
{formvh:translateElementProperty(element: element, property: 'label') -> f:format.raw()} <f:link.typolink class="underline" parameter="{element.properties.pageUid}" target="_blank">{formvh:translateElementProperty(element: element, property: 'linkText')}</f:link.typolink><f:if condition="{element.required}"> <f:render partial="Field/Required" /></f:if>
|
||||
</span>
|
||||
</label>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,35 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers"
|
||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
|
||||
<span class="block text-zinc-700 mb-1">{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
|
||||
<f:for each="{element.properties.options}" as="label" key="value" iteration="idIterator">
|
||||
<f:if condition="{v:format.substring(start: 0, length: 1, content: '{label}')} == '*'">
|
||||
<f:then>
|
||||
<f:variable name="labelClass" value="ml-2 font-bold"/>
|
||||
<f:variable name="labelString" value="{v:format.substring(start: 1, content: '{label}')}"/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:variable name="labelClass" value="ml-2"/>
|
||||
<f:variable name="labelString" value="{label}"/>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<div>
|
||||
<label class="inline-flex items-center">
|
||||
<f:form.checkbox
|
||||
property="{element.identifier}"
|
||||
multiple="1"
|
||||
id="{element.uniqueIdentifier}-{idIterator.index}"
|
||||
value="{value}"
|
||||
class="form-checkbox"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
<span class="{labelClass}">{labelString}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
|
||||
</label>
|
||||
</div>
|
||||
</f:for>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,33 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:if condition="{element.properties.prependOptionLabel}">
|
||||
<f:then>
|
||||
<f:form.select
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
options="{formvh:translateElementProperty(element: element, property: 'options')}"
|
||||
multiple="multiple"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
prependOptionLabel="{formvh:translateElementProperty(element: element, property: 'prependOptionLabel')}"
|
||||
prependOptionValue="{formvh:translateElementProperty(element: element, property: 'prependOptionValue')}"
|
||||
/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.select
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
options="{formvh:translateElementProperty(element: element, property: 'options')}"
|
||||
multiple="multiple"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textfield
|
||||
type="number"
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
|
||||
<span class="block text-zinc-700 mb-1">{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
|
||||
<f:for each="{element.properties.options}" as="label" key="value" iteration="idIterator">
|
||||
<div>
|
||||
<label for="{element.uniqueIdentifier}-{idIterator.index}" class="inline-flex items-center">
|
||||
<f:form.radio
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}-{idIterator.index}"
|
||||
value="{value}"
|
||||
class="form-radio"
|
||||
errorClass="form-radio--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
<span class="ml-2">{formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')}</span>
|
||||
</label>
|
||||
</div>
|
||||
</f:for>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,30 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:if condition="{element.properties.prependOptionLabel}">
|
||||
<f:then>
|
||||
<f:form.select
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
options="{formvh:translateElementProperty(element: element, property: 'options')}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
prependOptionLabel="{formvh:translateElementProperty(element: element, property: 'prependOptionLabel')}"
|
||||
prependOptionValue="{formvh:translateElementProperty(element: element, property: 'prependOptionValue')}"
|
||||
/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.select
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
options="{formvh:translateElementProperty(element: element, property: 'options')}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:comment>Same spinner as MyE&P (_partials/_spinner.html.twig), drawn in currentColor</f:comment>
|
||||
<svg class="{class}" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="currentColor">
|
||||
<g fill="none" fill-rule="evenodd" stroke-width="2">
|
||||
<circle cx="22" cy="22" r="1">
|
||||
<animate attributeName="r" begin="0s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite" />
|
||||
<animate attributeName="stroke-opacity" begin="0s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite" />
|
||||
</circle>
|
||||
<circle cx="22" cy="22" r="1">
|
||||
<animate attributeName="r" begin="-0.9s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite" />
|
||||
<animate attributeName="stroke-opacity" begin="-0.9s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite" />
|
||||
</circle>
|
||||
</g>
|
||||
</svg>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:if condition="{element.properties.text}">
|
||||
<p{f:if(condition: element.properties.elementClassAttribute, then: ' class="{element.properties.elementClassAttribute}"')}>
|
||||
<f:link.typolink parameter="{element.properties.targetPage}">
|
||||
{formvh:translateElementProperty(element: element, property: 'text') -> f:format.nl2br()}
|
||||
</f:link.typolink>
|
||||
</p>
|
||||
</f:if>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textfield
|
||||
type="tel"
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textfield
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{element}">
|
||||
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
||||
<f:form.textarea
|
||||
property="{element.identifier}"
|
||||
id="{element.uniqueIdentifier}"
|
||||
class="form-field"
|
||||
errorClass="form-field--has-error"
|
||||
rows="{element.properties.rows}"
|
||||
cols="{element.properties.cols}"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
||||
/>
|
||||
</f:render>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<formvh:renderRenderable renderable="{form}">
|
||||
<formvh:form
|
||||
object="{form}"
|
||||
action="{form.renderingOptions.controllerAction}"
|
||||
method="{form.renderingOptions.httpMethod}"
|
||||
id="{form.identifier}"
|
||||
section="{form.identifier}"
|
||||
enctype="{form.renderingOptions.httpEnctype}"
|
||||
addQueryString="{form.renderingOptions.addQueryString}"
|
||||
argumentsToBeExcludedFromQueryString="{form.renderingOptions.argumentsToBeExcludedFromQueryString}"
|
||||
additionalParams="{form.renderingOptions.additionalParams}"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: form, property: 'fluidAdditionalAttributes')}"
|
||||
data="{'controller': 'form-debounce', 'action': 'form-debounce#debounce', 'form-debounce-disabled-class': 'cursor-not-allowed'}"
|
||||
hx-boost="true"
|
||||
hx-target="closest .form-island"
|
||||
hx-select=".form-island"
|
||||
hx-swap="outerHTML"
|
||||
hx-push-url="false"
|
||||
hx-indicator="closest .form-island"
|
||||
>
|
||||
<f:render partial="{form.currentPage.templateName}" arguments="{page: form.currentPage}" />
|
||||
<div class="actions">
|
||||
<f:render partial="Form/Navigation" arguments="{form: form}" />
|
||||
</div>
|
||||
</formvh:form>
|
||||
</formvh:renderRenderable>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:comment>
|
||||
The forms of a page as the form page type (/path/form) returns them: htmx swaps this element as
|
||||
a whole (see Form.html). While a request runs, htmx sets htmx-request on it and the overlay
|
||||
covers the form. Styled here and not in the theme build: the static pages around the island
|
||||
load the CSS of the TYPO3 10 export. The spinner takes the button colour of each theme.
|
||||
</f:comment>
|
||||
<div class="form-island">
|
||||
{forms -> f:format.raw()}
|
||||
<div class="form-island__loading" aria-hidden="true">
|
||||
<f:render partial="Form/Spinner" arguments="{class: 'form-island__spinner'}" />
|
||||
</div>
|
||||
<style>
|
||||
.form-island { position: relative; }
|
||||
.form-island__loading { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .7); visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s; }
|
||||
.form-island.htmx-request .form-island__loading { visibility: visible; opacity: 1; }
|
||||
.form-island__spinner { width: 6rem; height: 6rem; color: rgb(24 82 123); }
|
||||
.sbw .form-island__spinner { color: rgb(233 28 38); }
|
||||
.snz .form-island__spinner { color: rgb(249 195 61); }
|
||||
.suz .form-island__spinner { color: rgb(130 195 198); }
|
||||
.uch .form-island__spinner { color: rgb(25 163 220); }
|
||||
.ser .form-island__spinner { color: rgb(222 44 27); }
|
||||
</style>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
|
||||
<f:flashMessages />
|
||||
<f:if condition="{formConfiguration}">
|
||||
<div class="py-8">
|
||||
<formvh:render overrideConfiguration="{formConfiguration}" />
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user