diff --git a/resources/views/macros/base.twig b/resources/views/macros/base.twig index d62e7c51..528beddb 100644 --- a/resources/views/macros/base.twig +++ b/resources/views/macros/base.twig @@ -36,9 +36,9 @@ {% macro button(label, url, type, size, title, icon_left, icon_right) %} - {%- if icon_left is defined %}{{ _self.icon(icon_left) }}{% endif %} + {%- if icon_left %}{{ _self.icon(icon_left) }}{% endif %} {{ label }} - {%- if icon_right is defined %}{{ _self.icon(icon_right) }}{% endif %} + {%- if icon_right %}{{ _self.icon(icon_right) }}{% endif %} {% endmacro %} diff --git a/resources/views/macros/form.twig b/resources/views/macros/form.twig index d776db02..9b3f907d 100644 --- a/resources/views/macros/form.twig +++ b/resources/views/macros/form.twig @@ -87,7 +87,7 @@ Also adds buttons to increment / decrement the value. #} {% macro number(name, label, opt) %}