{% import 'jqueryuibootstrap_wtf.html' as wtf %} {% macro render_form(form, cancel_url, extra=None) -%}
{%- endmacro %} {% macro generate_elements(form, display_blocks) -%} {{ form.hidden_tag() if form.hidden_tag }} {{ wtf.form_errors(form, False) }} {% for display_element in display_blocks %} {% if display_element['legend'] %}{% endif %} {% for field in display_element['display'] %} {{ wtf.horizontal_field(form[field]) }} {% endfor %} {% endfor %} {%- endmacro %}