|
88 | 88 | {% set attr = attr|merge({'class': attr.class|default('') ~ ' not-removable'}) %} |
89 | 89 | {% endif %} |
90 | 90 | {% set attr = attr|merge({'class': (attr.class|default('') ~ ' ' ~ widget_form_control_class)|trim}) %} |
91 | | - {% if static_text is sameas(true) %} |
| 91 | + {% if static_text is same as(true) %} |
92 | 92 | <p class="form-control-static">{{ value }}</p> |
93 | 93 | {% else %} |
94 | 94 | {{ parent() }} |
|
237 | 237 |
|
238 | 238 | {% block checkbox_widget %} |
239 | 239 | {% spaceless %} |
240 | | - {% if label is not sameas(false) and label is empty %} |
| 240 | + {% if label is not same as(false) and label is empty %} |
241 | 241 | {%- if label_format is defined and label_format is not empty -%} |
242 | 242 | {% set label = label_format|replace({ |
243 | 243 | '%name%': name, |
|
432 | 432 | {% block form_label %} |
433 | 433 | {% if 'checkbox' not in block_prefixes or widget_checkbox_label in ['label', 'both'] %} |
434 | 434 | {% spaceless %} |
435 | | - {% if label is not sameas(false) %} |
| 435 | + {% if label is not same as(false) %} |
436 | 436 | {% if label is empty %} |
437 | 437 | {%- if label_format is defined and label_format is not empty -%} |
438 | 438 | {% set label = label_format|replace({ |
|
479 | 479 | {% block help_label_tooltip %} |
480 | 480 | <span class="help-block"> |
481 | 481 | <a href="#" data-toggle="tooltip" data-placement="{{ help_label_tooltip.placement}}" data-title="{{ help_label_tooltip.title|trans({}, translation_domain) }}"> |
482 | | - {% if help_label_tooltip.icon is not sameas(false) %} |
| 482 | + {% if help_label_tooltip.icon is not same as(false) %} |
483 | 483 | {{ mopa_bootstrap_icon(help_label_tooltip.icon) }} |
484 | 484 | {% endif %} |
485 | | - {% if help_label_tooltip.text is not sameas(null) %} |
| 485 | + {% if help_label_tooltip.text is not same as(null) %} |
486 | 486 | {{ help_label_tooltip.text }} |
487 | 487 | {% endif %} |
488 | 488 | </a> |
|
497 | 497 | {% block help_label_popover %} |
498 | 498 | <span class="help-block"> |
499 | 499 | <a href="#" data-toggle="popover" data-trigger="hover" data-placement="{{ help_label_popover.placement}}" data-title="{{ help_label_popover.title|trans({}, translation_domain) }}" data-content="{{ help_label_popover.content|trans({}, translation_domain) }}" data-html="true"> |
500 | | - {% if help_label_popover.icon is not sameas(false) %} |
| 500 | + {% if help_label_popover.icon is not same as(false) %} |
501 | 501 | {{ mopa_bootstrap_icon(help_label_popover.icon) }} |
502 | 502 | {% endif %} |
503 | | - {% if help_label_popover.text is not sameas(null) %} |
| 503 | + {% if help_label_popover.text is not same as(null) %} |
504 | 504 | {{ help_label_popover.text|raw }} |
505 | 505 | {% endif %} |
506 | 506 | </a> |
|
542 | 542 | {% spaceless %} |
543 | 543 | {% if 'tab' in form.vars.block_prefixes %} |
544 | 544 | {{ block('form_tab') }} |
545 | | - {% elseif embed_form is sameas(true) %} |
| 545 | + {% elseif embed_form is same as(true) %} |
546 | 546 | {{ widget_prefix|trans({}, translation_domain)|raw }} {{ form_widget(form, _context) }} {{ widget_suffix|trans({}, translation_domain)|raw }} |
547 | 547 | {% else %} |
548 | 548 | {{ block('widget_form_group_start') }} |
549 | 549 |
|
550 | | - {% set show_horizontal_wrapper = horizontal and not (form.parent is not null and 'collection' in form.parent.vars.block_prefixes and form.parent.vars.horizontal_wrap_children is sameas(false)) %} |
| 550 | + {% set show_horizontal_wrapper = horizontal and not (form.parent is not null and 'collection' in form.parent.vars.block_prefixes and form.parent.vars.horizontal_wrap_children is same as(false)) %} |
551 | 551 |
|
552 | 552 | {% if horizontal and not label_render %} |
553 | 553 | {% set horizontal_input_wrapper_class = horizontal_input_wrapper_class ~ ' ' ~ horizontal_label_offset_class %} |
|
614 | 614 |
|
615 | 615 | {% block form_widget_remove_btn %} |
616 | 616 | {% spaceless %} |
617 | | - {% if widget_remove_btn.wrapper_div is defined and widget_remove_btn.wrapper_div is not sameas(false) %} |
| 617 | + {% if widget_remove_btn.wrapper_div is defined and widget_remove_btn.wrapper_div is not same as(false) %} |
618 | 618 | <div class="{{ widget_remove_btn.wrapper_div.class }}"> |
619 | 619 | {% endif %} |
620 | | - {% if widget_remove_btn.horizontal_wrapper_div is defined and widget_remove_btn.horizontal_wrapper_div is not sameas(false) %} |
| 620 | + {% if widget_remove_btn.horizontal_wrapper_div is defined and widget_remove_btn.horizontal_wrapper_div is not same as(false) %} |
621 | 621 | <div class="{{ widget_remove_btn.horizontal_wrapper_div.class }}"> |
622 | 622 | {% endif %} |
623 | 623 | {% if widget_remove_btn|default(null) %} |
624 | 624 | {% set button_type = 'remove' %} |
625 | 625 | {% set button_values = widget_remove_btn %} |
626 | 626 | {{ block('collection_button') }} |
627 | 627 | {% endif %} |
628 | | - {% if widget_remove_btn.horizontal_wrapper_div is defined and widget_remove_btn.horizontal_wrapper_div is not sameas(false) %} |
| 628 | + {% if widget_remove_btn.horizontal_wrapper_div is defined and widget_remove_btn.horizontal_wrapper_div is not same as(false) %} |
629 | 629 | </div> |
630 | 630 | {% endif %} |
631 | | - {% if widget_remove_btn.wrapper_div is defined and widget_remove_btn.wrapper_div is not sameas(false) %} |
| 631 | + {% if widget_remove_btn.wrapper_div is defined and widget_remove_btn.wrapper_div is not same as(false) %} |
632 | 632 | </div> |
633 | 633 | {% endif %} |
634 | 634 | {% endspaceless %} |
|
733 | 733 | {# Add Error Class to Widget Wrapper#} |
734 | 734 | {% set widget_form_group_attr = widget_form_group_attr|merge({'class': widget_form_group_attr.class|default('') ~ ' has-error'}) %} |
735 | 735 | {% endif %} |
736 | | - {% if help_widget_popover.selector is sameas(null) %} |
| 736 | + {% if help_widget_popover.selector is same as(null) %} |
737 | 737 | {% set help_widget_popover = help_widget_popover|merge({'selector': '#' ~ id }) %} |
738 | 738 | {% endif %} |
739 | | - <div{% if help_widget_popover.title is not sameas(null) %}{{ block('help_widget_popover') }}{% endif %} {% for attrname,attrvalue in widget_form_group_attr %} {{attrname}}="{{attrvalue}}"{% endfor %}> |
| 739 | + <div{% if help_widget_popover.title is not same as(null) %}{{ block('help_widget_popover') }}{% endif %} {% for attrname,attrvalue in widget_form_group_attr %} {{attrname}}="{{attrvalue}}"{% endfor %}> |
740 | 740 | {# a form item containing the field in block_prefixes is a near subform or a field directly #} |
741 | 741 | {% if (form|length > 0 and form.parent != null) |
742 | 742 | and 'field' not in form.vars.block_prefixes |
|
0 commit comments