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:
frommeandClaude Opus 5.5 committed 2026-10-22 12:10:43 +02:00
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'