Add "Adresscheck" form to extension

This commit is contained in:
Cedric Ziel
2018-09-26 11:42:49 +02:00
parent 0db6d097fd
commit 2e6b048704
4 changed files with 344 additions and 0 deletions
@@ -0,0 +1,132 @@
renderingOptions:
submitButtonLabel: Absenden
type: Form
identifier: adresscheck
label: Adresscheck
prototypeName: standard
finishers:
#-
# options:
# subject: Adresscheck
# recipientAddress: ' [email protected]'
# recipientName: 'Pascal Heim'
# senderAddress: [email protected]
# senderName: 'E&P Reisen'
# replyToAddress: ''
# carbonCopyAddress: ''
# blindCarbonCopyAddress: ''
# format: html
# attachUploads: false
# translation:
# language: ''
# identifier: EmailToReceiver
-
identifier: SaveToDatabase
options:
table: 'tx_eptheme_domain_model_addresscheck'
mode: insert
databaseColumnMappings:
pid:
value: 1
elements:
customer-id:
mapOnDatabaseColumn: 'customer_id'
title:
mapOnDatabaseColumn: 'title'
first-name:
mapOnDatabaseColumn: 'first_name'
last-name:
mapOnDatabaseColumn: 'last_name'
address:
mapOnDatabaseColumn: 'address'
zip:
mapOnDatabaseColumn: 'zip'
city:
mapOnDatabaseColumn: 'city'
country:
mapOnDatabaseColumn: 'country'
email:
mapOnDatabaseColumn: 'email'
no-postal:
mapOnDatabaseColumn: 'no_postal'
no-email:
mapOnDatabaseColumn: 'no_email'
address-is-current-postal:
mapOnDatabaseColumn: 'address_current'
renderables:
-
renderingOptions:
previousButtonLabel: ''
nextButtonLabel: ''
type: Page
identifier: page-1
label: ''
renderables:
-
defaultValue: ''
type: Hidden
identifier: customer-id
label: KundenID
-
defaultValue: ''
type: Text
identifier: title
label: Anrede
-
defaultValue: ''
type: Text
identifier: first-name
label: Vorname
-
defaultValue: ''
type: Text
identifier: last-name
label: Name
-
defaultValue: ''
type: Text
identifier: address
label: 'Straße & Hausnummer'
properties:
elementDescription: ''
-
defaultValue: ''
type: Text
identifier: zip
label: PLZ
-
defaultValue: ''
type: Text
identifier: city
label: Stadt
-
defaultValue: ''
type: Text
identifier: country
label: Land
-
defaultValue: ''
type: Text
identifier: email
label: E-Mail
properties:
fluidAdditionalAttributes:
required: required
validators:
-
identifier: NotEmpty
-
identifier: EmailAddress
-
type: Checkbox
identifier: no-postal
label: 'Postalische Werbung abbestellen'
-
type: Checkbox
identifier: no-email
label: 'Ich möchte keine Mails mehr erhalten.'
-
type: Checkbox
identifier: address-is-current
label: 'Meine Adresse ist aktuell.'