|
74 | 74 | {%- block choice_widget_options -%}
|
75 | 75 | {% for group_label, choice in options %}
|
76 | 76 | {%- if choice is iterable -%}
|
77 |
| - <optgroup label="{{ choice_translation_domain is sameas(false) ? group_label : group_label|trans({}, choice_translation_domain) }}"> |
| 77 | + <optgroup label="{{ choice_translation_domain is same as(false) ? group_label : group_label|trans({}, choice_translation_domain) }}"> |
78 | 78 | {% set options = choice %}
|
79 | 79 | {{- block('choice_widget_options') -}}
|
80 | 80 | </optgroup>
|
81 | 81 | {%- else -%}
|
82 | 82 | {% set attr = choice.attr %}
|
83 |
| - <option value="{{ choice.value }}" {{ block('attributes') }}{% if choice is selectedchoice(value) %} selected="selected"{% endif %}>{{ choice_translation_domain is sameas(false) ? choice.label : choice.label|trans({}, choice_translation_domain) }}</option> |
| 83 | + <option value="{{ choice.value }}" {{ block('attributes') }}{% if choice is selectedchoice(value) %} selected="selected"{% endif %}>{{ choice_translation_domain is same as(false) ? choice.label : choice.label|trans({}, choice_translation_domain) }}</option> |
84 | 84 | {%- endif -%}
|
85 | 85 | {% endfor %}
|
86 | 86 | {%- endblock choice_widget_options -%}
|
|
220 | 220 | {% set label = name|humanize %}
|
221 | 221 | {%- endif -%}
|
222 | 222 | {%- endif -%}
|
223 |
| - <label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ translation_domain is sameas(false) ? label : label|trans({}, translation_domain) }}</label> |
| 223 | + <label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}</label> |
224 | 224 | {%- endif -%}
|
225 | 225 | {%- endblock form_label -%}
|
226 | 226 |
|
|
321 | 321 | {{- " " -}}
|
322 | 322 | {%- if attrname in ['placeholder', 'title'] -%}
|
323 | 323 | {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"
|
324 |
| - {%- elseif attrvalue is sameas(true) -%} |
| 324 | + {%- elseif attrvalue is same as(true) -%} |
325 | 325 | {{- attrname }}="{{ attrname }}"
|
326 |
| - {%- elseif attrvalue is not sameas(false) -%} |
| 326 | + {%- elseif attrvalue is not same as(false) -%} |
327 | 327 | {{- attrname }}="{{ attrvalue }}"
|
328 | 328 | {%- endif -%}
|
329 | 329 | {%- endfor -%}
|
|
335 | 335 | {{- " " -}}
|
336 | 336 | {%- if attrname in ['placeholder', 'title'] -%}
|
337 | 337 | {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"
|
338 |
| - {%- elseif attrvalue is sameas(true) -%} |
| 338 | + {%- elseif attrvalue is same as(true) -%} |
339 | 339 | {{- attrname }}="{{ attrname }}"
|
340 |
| - {%- elseif attrvalue is not sameas(false) -%} |
| 340 | + {%- elseif attrvalue is not same as(false) -%} |
341 | 341 | {{- attrname }}="{{ attrvalue }}"
|
342 | 342 | {%- endif -%}
|
343 | 343 | {%- endfor -%}
|
|
349 | 349 | {{- " " -}}
|
350 | 350 | {%- if attrname in ['placeholder', 'title'] -%}
|
351 | 351 | {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"
|
352 |
| - {%- elseif attrvalue is sameas(true) -%} |
| 352 | + {%- elseif attrvalue is same as(true) -%} |
353 | 353 | {{- attrname }}="{{ attrname }}"
|
354 |
| - {%- elseif attrvalue is not sameas(false) -%} |
| 354 | + {%- elseif attrvalue is not same as(false) -%} |
355 | 355 | {{- attrname }}="{{ attrvalue }}"
|
356 | 356 | {%- endif -%}
|
357 | 357 | {%- endfor -%}
|
|
362 | 362 | {{- " " -}}
|
363 | 363 | {%- if attrname in ['placeholder', 'title'] -%}
|
364 | 364 | {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"
|
365 |
| - {%- elseif attrvalue is sameas(true) -%} |
| 365 | + {%- elseif attrvalue is same as(true) -%} |
366 | 366 | {{- attrname }}="{{ attrname }}"
|
367 |
| - {%- elseif attrvalue is not sameas(false) -%} |
| 367 | + {%- elseif attrvalue is not same as(false) -%} |
368 | 368 | {{- attrname }}="{{ attrvalue }}"
|
369 | 369 | {%- endif -%}
|
370 | 370 | {%- endfor -%}
|
|
0 commit comments