minor #11554 [TwigBridge] [Form] Fixed some extra empty spaces (eiannone)
This PR was squashed before being merged into the 2.3 branch (closes #11554). Discussion ---------- [TwigBridge] [Form] Fixed some extra empty spaces | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Extra empty spaces for choice_widget_collapsed, they were introduced by commit8f9ed3ebb9
by @chrisguitarguy Commits -------16bd88e
[TwigBridge] [Form] Fixed some extra empty spaces
This commit is contained in:
commit
24c49841c8
@ -52,9 +52,9 @@
|
|||||||
{%- endblock choice_widget_expanded %}
|
{%- endblock choice_widget_expanded %}
|
||||||
|
|
||||||
{% block choice_widget_collapsed -%}
|
{% block choice_widget_collapsed -%}
|
||||||
{% if required and empty_value is none and not empty_value_in_choices and not multiple %}
|
{% if required and empty_value is none and not empty_value_in_choices and not multiple -%}
|
||||||
{% set required = false %}
|
{% set required = false %}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
||||||
{% if empty_value is not none -%}
|
{% if empty_value is not none -%}
|
||||||
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>
|
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>
|
||||||
|
Reference in New Issue
Block a user