{% extends "form_div_layout.html.twig" %} {%- block button_widget -%} {%- if label is null -%} {# allow false value for hidding label #} {%- if label_format is not empty -%} {% set label = label_format|replace({ '%name%': name, '%id%': id, }) %} {%- else -%} {% set label = name|humanize %} {%- endif -%} {%- endif -%} {%- if label is not empty -%} {% set labelValue = translation_domain is same as(false) ? label : label|trans({}, translation_domain) %} {% set labelHtml = '
' %} {% else %} {% set labelHtml = '' %} {% endif %} {% if icon|default %} {% set iconHtml = '' %} {% else %} {% set iconHtml = '' %} {% endif %} {%- endblock button_widget -%}