Hide label button when its setted to false

Added same behaviour in buttons like in other form components when label is setted to false, don't show it. It's very useful with buttons with icon and without text
This commit is contained in:
TeLiXj 2017-09-11 10:56:17 +02:00 committed by Fabien Potencier
parent 77998813fe
commit e3190755cf

View File

@ -216,7 +216,7 @@
{%- endblock range_widget %}
{%- block button_widget -%}
{%- if label is empty -%}
{%- if label is not same as(false) and label is empty -%}
{%- if label_format is not empty -%}
{% set label = label_format|replace({
'%name%': name,