{% from 'bootstrap/form.html' import render_field %} {% macro custom_render_form_row(fields, row_class='form-row', col_class_default='col', col_map={}, button_map={}, button_style='', button_size='', render_args={}) %}
{% for field in fields %} {% if field.name in col_map %} {% set col_class = col_map[field.name] %} {% else %} {% set col_class = col_class_default %} {% endif %}
{{ render_field(field, button_map=button_map, button_style=button_style, button_size=button_size, **render_args) }}
{% endfor %}
{% endmacro %} {% macro make_tabs(tabs)%} {% set tabs_id = tabs|tojson|hash %}
{% for label,tab in tabs if tab %} {% set id_name = [loop.index,tabs_id ]|join("-") %}
{{ tab|safe }}
{% endfor %}
{% endmacro %} {% macro render_tree(tree) -%} {% endmacro %}