Skip to content

Commit

Permalink
[TASK] Style form data protection field
Browse files Browse the repository at this point in the history
  • Loading branch information
buepro committed Nov 14, 2023
1 parent 6a8f187 commit 052a3c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 52 deletions.
51 changes: 0 additions & 51 deletions Configuration/Form/CustomFormSetup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,6 @@ TYPO3:
translation:
translationFiles:
210: 'EXT:pizpalue/Resources/Private/Language/Forms.xlf'
AdvancedPassword:
properties:
elementErrorClassAttribute: error is-invalid
Checkbox:
properties:
elementErrorClassAttribute: error is-invalid
Date:
properties:
elementErrorClassAttribute: error is-invalid
DatePicker:
properties:
elementErrorClassAttribute: error is-invalid
Email:
properties:
elementErrorClassAttribute: error is-invalid
FileUpload:
properties:
elementErrorClassAttribute: error is-invalid
ImageUpload:
properties:
elementErrorClassAttribute: error is-invalid
MultiCheckbox:
properties:
elementErrorClassAttribute: error is-invalid
MultiSelect:
properties:
elementErrorClassAttribute: error is-invalid
Number:
properties:
elementErrorClassAttribute: error is-invalid
Password:
properties:
elementErrorClassAttribute: error is-invalid
RadioButton:
properties:
elementErrorClassAttribute: error is-invalid
SingleSelect:
properties:
elementErrorClassAttribute: error is-invalid
Telephone:
properties:
elementErrorClassAttribute: error is-invalid
Text:
properties:
elementErrorClassAttribute: error is-invalid
Textarea:
properties:
elementErrorClassAttribute: error is-invalid
Url:
properties:
elementErrorClassAttribute: error is-invalid
finishersDefinition:
EmailToSender:
implementationClassName: 'Buepro\Pizpalue\Form\Finishers\EmailFinisher'
Expand Down
11 changes: 10 additions & 1 deletion Initialisation/Files/forms/GeneralContact.form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,21 @@ renderables:
label: Image
-
properties:
containerClassAttribute: 'custom-checkbox-multiple pp-dataprotection'
fluidAdditionalAttributes:
data:
pizpalue: form-field-dataprotection
options:
dataprotectionRead: 'Please confirm that you have read our data protection notice by checking this checkbox'
variants:
- identifier: template-variant
condition: 'getRootFormProperty("renderingOptions.templateVariant") == "version2"'
properties:
renderFieldset: 0
containerClassAttribute: 'pp-form-check mb-2'
elementClassAttribute: 'form-check-input me-2'
elementErrorClassAttribute: ~
labelClassAttribute: 'form-check-wrapping-label mb-2'
labelTextClassAttribute: form-check-label
type: MultiCheckbox
identifier: idDataprotectionMultiCheckbox
label: 'Data protection notice'
Expand Down

0 comments on commit 052a3c0

Please sign in to comment.