{# https://gist.github.com/bearz/7394681 #} {% macro bs_form(form, action, opts, method='post') -%} {% from 'bs_form_body.htm' import bs_form_body with context -%} {% if not opts.layout_classes -%} {% do opts.update({'layout_classes': layout_classes}) -%} {% endif -%} {% if not opts.class -%} {% do opts.update({'class': ''}) -%} {% endif -%}