|
50 | 50 | <div {{ block('widget_container_attributes') }}>
|
51 | 51 | {%- for child in form %}
|
52 | 52 | {{- form_widget(child) -}}
|
53 |
| - {{- form_label(child, null, {label_translation_parameters: choice_translation_parameters|default([]), translation_domain: choice_translation_domain}) -}} |
| 53 | + {# NEXT_MAJOR: Use default([]) for choice_translation_parameters #} |
| 54 | + {{- form_label(child, null, {label_translation_parameters: choice_translation_parameters|default(label_translation_parameters), translation_domain: choice_translation_domain}) -}} |
54 | 55 | {% endfor -%}
|
55 | 56 | </div>
|
56 | 57 | {%- endblock choice_widget_expanded -%}
|
|
80 | 81 | {%- block choice_widget_options -%}
|
81 | 82 | {% for group_label, choice in options %}
|
82 | 83 | {%- if choice is iterable -%}
|
83 |
| - <optgroup label="{{ choice_translation_domain is same as(false) ? group_label : group_label|trans(choice_translation_parameters|default([]), choice_translation_domain) }}"> |
| 84 | + {# NEXT_MAJOR: Use default([]) for choice_translation_parameters #} |
| 85 | + <optgroup label="{{ choice_translation_domain is same as(false) ? group_label : group_label|trans(choice_translation_parameters|default(label_translation_parameters), choice_translation_domain) }}"> |
84 | 86 | {% set options = choice %}
|
85 | 87 | {{- block('choice_widget_options') -}}
|
86 | 88 | </optgroup>
|
87 | 89 | {%- else -%}
|
88 |
| - <option value="{{ choice.value }}"{% if choice.attr %}{% with { attr: choice.attr } %}{{ block('attributes') }}{% endwith %}{% endif %}{% if not render_preferred_choices|default(false) and choice is selectedchoice(value) %} selected="selected"{% endif %}>{{ choice_translation_domain is same as(false) ? choice.label : choice.label|trans(choice_translation_parameters|default([]), choice_translation_domain) }}</option> |
| 90 | + {# NEXT_MAJOR: Use default([]) for choice_translation_parameters #} |
| 91 | + <option value="{{ choice.value }}"{% if choice.attr %}{% with { attr: choice.attr } %}{{ block('attributes') }}{% endwith %}{% endif %}{% if not render_preferred_choices|default(false) and choice is selectedchoice(value) %} selected="selected"{% endif %}>{{ choice_translation_domain is same as(false) ? choice.label : choice.label|trans(choice_translation_parameters|default(label_translation_parameters), choice_translation_domain) }}</option> |
89 | 92 | {%- endif -%}
|
90 | 93 | {% endfor %}
|
91 | 94 | {%- endblock choice_widget_options -%}
|
|
0 commit comments