{% from "macros/form.html" import m_field with context %}
{{ form.csrf_token }} {%- set options = form._widgets_options|default({}) %} {%- for label, field_names in form._groups %} {%- if label %}{{ label }}{%- endif %}
{%- for field_name in field_names %} {{ m_field(form[field_name], horizontal=True, label_width=3, field_width=6) }} {%- endfor %}
{% endfor %}
{%- if for_new %} {%- if has_save_and_add_new %} {%- endif %} {%- else %} {%- endif %}
{% if rules %} {% endif %} {% if form.js %} {% endif %}