|
57 | 57 | {%- endif -%}
|
58 | 58 | <select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
59 | 59 | {%- if placeholder is not none -%}
|
60 |
| - <option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ placeholder != '' ? (translation_domain is same as (false) ? placeholder : placeholder|trans({}, translation_domain)) }}</option> |
| 60 | + <option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ placeholder != '' ? (translation_domain is same as(false) ? placeholder : placeholder|trans({}, translation_domain)) }}</option> |
61 | 61 | {%- endif -%}
|
62 | 62 | {%- if preferred_choices|length > 0 -%}
|
63 | 63 | {% set options = preferred_choices %}
|
|
324 | 324 | {%- for attrname, attrvalue in attr -%}
|
325 | 325 | {{- " " -}}
|
326 | 326 | {%- if attrname in ['placeholder', 'title'] -%}
|
327 |
| - {{- attrname }}="{{ translation_domain is same as (false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
| 327 | + {{- attrname }}="{{ translation_domain is same as(false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
328 | 328 | {%- elseif attrvalue is same as(true) -%}
|
329 | 329 | {{- attrname }}="{{ attrname }}"
|
330 | 330 | {%- elseif attrvalue is not same as(false) -%}
|
|
338 | 338 | {%- for attrname, attrvalue in attr -%}
|
339 | 339 | {{- " " -}}
|
340 | 340 | {%- if attrname in ['placeholder', 'title'] -%}
|
341 |
| - {{- attrname }}="{{ translation_domain is same as (false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
| 341 | + {{- attrname }}="{{ translation_domain is same as(false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
342 | 342 | {%- elseif attrvalue is same as(true) -%}
|
343 | 343 | {{- attrname }}="{{ attrname }}"
|
344 | 344 | {%- elseif attrvalue is not same as(false) -%}
|
|
352 | 352 | {%- for attrname, attrvalue in attr -%}
|
353 | 353 | {{- " " -}}
|
354 | 354 | {%- if attrname in ['placeholder', 'title'] -%}
|
355 |
| - {{- attrname }}="{{ translation_domain is same as (false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
| 355 | + {{- attrname }}="{{ translation_domain is same as(false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
356 | 356 | {%- elseif attrvalue is same as(true) -%}
|
357 | 357 | {{- attrname }}="{{ attrname }}"
|
358 | 358 | {%- elseif attrvalue is not same as(false) -%}
|
|
365 | 365 | {%- for attrname, attrvalue in attr -%}
|
366 | 366 | {{- " " -}}
|
367 | 367 | {%- if attrname in ['placeholder', 'title'] -%}
|
368 |
| - {{- attrname }}="{{ translation_domain is same as (false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
| 368 | + {{- attrname }}="{{ translation_domain is same as(false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" |
369 | 369 | {%- elseif attrvalue is same as(true) -%}
|
370 | 370 | {{- attrname }}="{{ attrname }}"
|
371 | 371 | {%- elseif attrvalue is not same as(false) -%}
|
|
0 commit comments