{# # One or zero ModelForm with one or multiple one to many related inline formsets #} {% from 'bs_form_body.htm' import bs_form_body with context %} {% macro bs_inline_formsets(related_form, formsets, action, html) -%} {% if not html.layout_classes %} {% do html.update({'layout_classes': layout_classes}) %} {% endif %} {% if formsets|get_type == 'list' %} {% if not html.class %} {% do html.update({'class': ''}) %} {% endif %} {% set table_classes = 'table table-bordered table-responsive' %}