-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additionally, set default retry to 3 in acceptance tests.
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% use "bootstrap_5_layout.html.twig" %} | ||
|
||
{# Override to ignore label_attr for expanded choices, allowing them to be rendered as buttons. #} | ||
{%- block choice_label -%} | ||
{% if expanded is defined and expanded %} | ||
<legend class="form-label{{ required ? ' required' }}">{{ label }}</legend> | ||
{% else %} | ||
{{- parent() -}} | ||
{% endif %} | ||
{%- endblock choice_label %} | ||
|
||
{# Override to ensure choices don't inherit the required attribute, removing the asterisk from each choice. #} | ||
{%- block choice_widget_expanded -%} | ||
<div {{ block('widget_container_attributes') }}> | ||
{%- for child in form %} | ||
{{- form_widget(child, { | ||
required: false, | ||
parent_label_class: label_attr.class|default(''), | ||
translation_domain: choice_translation_domain, | ||
valid: valid, | ||
}) -}} | ||
{% endfor -%} | ||
</div> | ||
{%- endblock choice_widget_expanded %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters