
renderingOptions:
  submitButtonLabel: Absenden
  fieldState:
    name:
      identifier: name
      label: Name
      type: Text
      renderingOptions:
        deleted: 0
    subject:
      identifier: subject
      label: Subject
      type: Text
      renderingOptions:
        deleted: 0
    email:
      identifier: email
      label: Email
      type: Text
      renderingOptions:
        deleted: 0
    phone:
      identifier: phone
      label: Telefon
      type: Text
      renderingOptions:
        deleted: 0
    zip:
      identifier: zip
      label: PLZ
      type: Text
      renderingOptions:
        deleted: 0
    city:
      identifier: city
      label: Ort
      type: Text
      renderingOptions:
        deleted: 0
    message:
      identifier: message
      label: Message
      type: Textarea
      renderingOptions:
        deleted: 0
    dataprotection:
      identifier: dataprotection
      label: Dataprotection
      type: Checkbox
      renderingOptions:
        deleted: 0
    recaptcha-1:
      identifier: recaptcha-1
      label: reCAPTCHA
      type: Recaptcha
      renderingOptions:
        deleted: 0
identifier: kontakt-Formular
label: Kontakt-Formular
type: Form
prototypeName: standard
finishers:
  -
    options:
      subject: 'Your message: {subject}'
      recipients:
        info@betterschool.de: 'Betterschool Internatsberatung'
      senderAddress: info@betterschool.de
      senderName: 'Betterschool Internatsberatung'
      format: html
      attachUploads: true
      translation:
        translationFiles:
          10: 'EXT:betterschool_theme/Resources/Private/Language/locallang_form.xlf'
      title: 'Confirmation of your message'
    identifier: EmailToReceiver
  -
    options:
      subject: 'Your message: {subject}'
      recipients:
        '{email}': '{name}'
      senderAddress: info@betterschool.de
      senderName: 'Betterschool Internatsberatung'
      format: html
      translation:
        translationFiles:
          10: 'EXT:betterschool_theme/Resources/Private/Language/locallang_form.xlf'
      title: 'Confirmation of your message'
    identifier: EmailToSender
  -
    options:
      message: ''
      contentElementUid: '62'
    identifier: Confirmation
  -
    identifier: FormToDatabase
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Vorherige Seite'
      nextButtonLabel: 'Nächster Schritt'
    identifier: page-1
    label: ''
    type: Page
    renderables:
      -
        defaultValue: ''
        identifier: name
        label: Name
        type: Text
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        identifier: subject
        label: Subject
        type: Text
        properties:
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        identifier: email
        label: Email
        type: Text
        properties:
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
          -
            identifier: EmailAddress
      -
        defaultValue: ''
        type: Text
        identifier: phone
        label: Telefon
        properties:
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        type: GridRow
        identifier: gridrow-1
        label: 'Grid: Zeile'
        renderables:
          -
            defaultValue: ''
            type: Text
            identifier: zip
            label: PLZ
            properties:
              fluidAdditionalAttributes:
                required: required
              gridColumnClassAutoConfiguration:
                viewPorts:
                  xs:
                    numbersOfColumnsToUse: '12'
                  md:
                    numbersOfColumnsToUse: '3'
                  sm:
                    numbersOfColumnsToUse: '12'
                  lg:
                    numbersOfColumnsToUse: '3'
                  xl:
                    numbersOfColumnsToUse: '3'
                  xxl:
                    numbersOfColumnsToUse: '3'
            validators:
              -
                identifier: NotEmpty
          -
            defaultValue: ''
            type: Text
            identifier: city
            label: Ort
            properties:
              fluidAdditionalAttributes:
                required: required
              gridColumnClassAutoConfiguration:
                viewPorts:
                  xs:
                    numbersOfColumnsToUse: '12'
                  md:
                    numbersOfColumnsToUse: '9'
                  sm:
                    numbersOfColumnsToUse: '12'
                  lg:
                    numbersOfColumnsToUse: '9'
                  xl:
                    numbersOfColumnsToUse: '9'
                  xxl:
                    numbersOfColumnsToUse: '9'
            validators:
              -
                identifier: NotEmpty
      -
        defaultValue: ''
        identifier: message
        label: Message
        type: Textarea
        properties:
          fluidAdditionalAttributes:
            required: required
            rows: 6
        validators:
          -
            identifier: NotEmpty
      -
        type: Checkbox
        identifier: dataprotection
        label: Dataprotection
        properties:
          fluidAdditionalAttributes:
            required: required
          confirmationLabel: ''
        variants:
          -
            identifier: dataprotection-hide
            renderingOptions:
              enabled: false
            condition: 'finisherIdentifier in ["EmailToSender", "EmailToReceiver"]'
        validators:
          -
            identifier: NotEmpty
      -
        type: SecureCheck
        identifier: securitycheck
        label: 'Security check against robots'
        validators:
          -
            identifier: SpamSecurityCheck
            options:
              securityLevel: 5
              formTimeout: 10
        properties:
          secureCheckSuccessMessage: 'Validation passed'
          validationErrorMessages:
            -
              code: 1221559976
              message: 'Hinweis: Entschuldigung, die Sicherheitsprüfung hat Sie als Roboter identifiziert. Um die Sicherheitsprüfung zu bestehen, müssen Sie mehr Aktionen auf dieser Seite ausführen, die typisch für einen menschlichen Besucher sind. Außerdem muss JavaScript aktiviert sein.'

#      -
#        evoweb/recaptcha (diese Zeile ist auskommentiert, weil wir die reCAPTCHA-Validierung nicht verwenden)
#        renderingOptions:
#          doNotShowLabel: true
#        type: Recaptcha
#        identifier: recaptcha-1
#        label: reCAPTCHA
#        validators:
#          -
#            identifier: Recaptcha
