Skip to content

Instantly share code, notes, and snippets.

@mfMeds

mfMeds/Form Yaml Secret

Created November 14, 2018 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfMeds/ccdd42765b2682e01e8d89a47dc9f36d to your computer and use it in GitHub Desktop.
Save mfMeds/ccdd42765b2682e01e8d89a47dc9f36d to your computer and use it in GitHub Desktop.
type: 'Neos.Form:Form'
identifier: contact-form
label: Contact
renderingOptions:
submitButtonLabel: Send
formClassAttribute: 'form-horizontal'
translationPackage: 'MyWebsite.Website'
renderables:
-
type: 'Neos.Form:Page'
identifier: page-one
renderables:
-
type: 'Wwwision.Form.MultiColumnSection:TwoColumns'
identifier: two-columns
renderables:
-
type: 'Neos.Form:SingleLineText'
identifier: name
renderingOptions:
_column: 2
properties:
elementClassAttribute: 'Contact-name icon-'
placeholder: Name
-
type: 'Neos.Form:SingleSelectDropdown'
identifier: Anrede
properties:
options:
'Herr': 'Herr'
'Frau': 'Frau'
renderingOptions:
_column: 1
-
type: 'Neos.Form:SingleLineText'
identifier: Telefonnummer
properties:
elementClassAttribute: 'icon-phone'
placeholder: +43 664/70 70 600
defaultValue: ''
-
type: 'Neos.Form:SingleLineText'
identifier: email
validators:
-
identifier: 'Neos.Flow:EmailAddress'
properties:
placeholder: 'E-Mail'
elementClassAttribute: 'icon-email'
-
type: 'Neos.Form:MultipleSelectCheckboxes'
identifier: interesse
label: Ich habe Interesse an
properties:
#containerClassAttribute: 'contactLabel'
elementClassAttribute: 'checkbox_label'
options:
'Consulting': 'Consulting'
'CRM': 'CRM'
'MOVECRM': 'ERP'
'WebShops': 'Web'
'Apps': 'Apps'
'Sonstiges': 'Sonstiges'
-
type: 'Neos.Form:MultiLineText'
identifier: nachricht
properties:
elementClassAttribute: 'textarea input'
placeholder: 'i18n'
defaultValue: ''
-
type: 'Wegmeister.Recaptcha:Captcha'
identifier: captcha
properties:
siteKey: 6LdhqhkTAAAAAJa9s2Wn8abYJZaOiQo8tXH6eF-3
wrapperClassAttribute: 'form-group'
theme: 'light'
type: 'image'
size: 'normal'
tabindex: 0
validators:
-
identifier: 'Wegmeister.Recaptcha:IsValid'
options:
secretKey: 6LdhqhkTAAAAAOMDk1yY4C9J5EizKRrwByu9NQ8j
finishers:
-
identifier: 'Neos.Form:Redirect'
#options:
#will redirect to http://website.com/contact/thanks.html
#uri: 'contact/thanks.html'
-
identifier: 'Neos.Form:Email'
options:
templatePathAndFilename: resource://MyWebsite.Website/Private/Templates/Email/Message.html
subject: Anfrage auf MyWebsite.at
recipientAddress: florian.eibisberger@MyWebsite.at
recipientName: 'Office'
senderAddress: noreply@MyWebsite.at
senderName: MyWebsite
replyToAddress: office@MyWebsite.at
format: html
translation.enabled: true
translation.package: 'MyWebsite.Website'
translation.locale: 'de'
translation.source: 'Main'
#-
#identifier: 'MyWebsite.Website:MultiLang'
#options:
#redirectTo: 'fde02d3f-6abc-4352-be2b-a1b8e04dcf9f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment