diff --git a/CHANGELOG.md b/CHANGELOG.md index 6971b3f..e7836ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). * add further explanation to recaptcha * accodion trigger button will not trigger form submission, when used within a form container * update error-messages for formfields +* add info-text and tooltip above formfields ## [1.4.7] - 11.10.2024 * Prevent spacer from shrinking to 0px if no other element is present (#386885) diff --git a/content-elements/form/checkbox/prototype/template.twig b/content-elements/form/checkbox/prototype/template.twig index 051b52d..7e609ba 100644 --- a/content-elements/form/checkbox/prototype/template.twig +++ b/content-elements/form/checkbox/prototype/template.twig @@ -1,26 +1,31 @@ -{% macro render(elementId = null, elementPartId = null, formTextPartId = null, errorRequiredPartId = null, labelText = null, infoText = null, errorRequiredText = null) %}{% apply spaceless %} - {% deprecated 'The usage of "element.render(...)" is deprecated, use "include ... with {...}" instead. For detailed information, visit: https://github.com/bsi-software/bsi-cx-design-master-template-web/blob/main/MIGRATION_GUIDE.md"' %} - {% include './template.twig' %} -{% endapply %}{% endmacro %} +{% macro render(elementId = null, elementPartId = null, formTextPartId = null, errorRequiredPartId = null, labelText = null, infoText = null, errorRequiredText = null) %} + {% apply spaceless %} + {% deprecated 'The usage of "element.render(...)" is deprecated, use "include ... with {...}" instead. For detailed information, visit: https://github.com/bsi-software/bsi-cx-design-master-template-web/blob/main/MIGRATION_GUIDE.md"' %} + {% include './template.twig' %} + {% endapply %} +{% endmacro %} {% apply spaceless %} - {% set checkboxElementId = elementId ?: 'checkbox-24CNSe' %} - {% set checkboxElementPartId = elementPartId ?: 'checkbox-part-Nls88s' %} - {% set checkboxFormTextPartId = formTextPartId ?: 'checkbox-part-text-6ycJm4' %} - {% set checkboxErrorRequiredPartId = errorRequiredPartId ?: 'checkbox-part-error-required-iYG8Ss' %} - {% set checkboxLabelText = (labelText ?: properties.checkboxLabelText) ?: bsi_cx_lorem(3) %} - {% set checkboxInfoText = (infoText ?: properties.checkboxInfoText) ?: "" %} - {% set checkboxErrorRequiredText = (errorRequiredText ?: properties.errorRequiredText) ?: 'Bitte füllen Sie dieses Feld aus.' %} {# TODO: make translatable #} +{% set checkboxElementId = elementId ?: 'checkbox-24CNSe' %} +{% set checkboxElementPartId = elementPartId ?: 'checkbox-part-Nls88s' %} +{% set checkboxFormTextPartId = formTextPartId ?: 'checkbox-part-text-6ycJm4' %} +{% set checkboxErrorRequiredPartId = errorRequiredPartId ?: 'checkbox-part-error-required-iYG8Ss' %} +{% set checkboxLabelText = (labelText ?: properties.checkboxLabelText) ?: bsi_cx_lorem(3) %} +{% set checkboxInfoText = (infoText ?: properties.checkboxInfoText) ?: "" %} +{% set checkboxErrorRequiredText = (errorRequiredText ?: properties.errorRequiredText) ?: 'Bitte füllen Sie dieses Feld aus.' %} +{# TODO: make translatable #} -
-
- -
- - -
-
{{ checkboxInfoText }}
-
{{ checkboxErrorRequiredText }}
-
-
-{% endapply %} \ No newline at end of file +
+
+
+
{{ checkboxInfoText }}
+ +
+ + +
+ {{ checkboxErrorRequiredText }} +
+
+
+{% endapply %}