{% macro input(name, label, type, opt) %}
{% if label -%} {%- endif %}
{%- endmacro %} {% macro textarea(name, label, opt) %}
{% if label -%} {%- endif %}
{%- endmacro %} {% macro select(name, data, label, selected) %}
{% if label -%} {% endif %}
{%- endmacro %} {% macro checkbox(name, label, checked, value) %}
{%- endmacro %} {% macro hidden(name, value) %} {%- endmacro %} {% macro button(label, opt) %} {%- endmacro %} {% macro submit(label, opt) %} {{ _self.button(label|default(__('form.submit')), opt|default({})|merge({'type': 'submit'})) }} {%- endmacro %} {% macro info(text) %} {% import 'macros/base.twig' as m %} {{ m.glyphicon('info-sign') }}{{ text }} {%- endmacro %}