{% extends "form_div_layout.html.twig" %} {%- block checkbox_row -%} {%- set parent_class = parent_class|default(attr.class|default('')) -%} {%- if 'switch-input' in parent_class -%} {{- form_label(form) -}} {%- set attr = attr|merge({class: (attr.class|default('') ~ ' switch-input')|trim}) -%} {{- form_widget(form) -}} {{- form_errors(form) -}} {%- else -%} {{- block('form_row') -}} {%- endif -%} {%- endblock checkbox_row -%} {% block money_widget -%} {% set prepend = not (money_pattern starts with '{{') %} {% set append = not (money_pattern ends with '}}') %} {% if prepend or append %}