{{ form.hidden_tag() }}
{% for item in form %} {% if item.id == 'submit' %} {% elif item.id == 'csrf_token' %} {% else %} {% if item.type == 'BooleanField' %}
{{ item.label(class=theme.form.check_label_class, style=theme.form.check_label_style) }} {% else %} {{ item.label(class=theme.form.input_label_class, style=theme.form.input_label_style) }} {% endif %} {% if item.errors %} {{ item(class=theme.form.input_error_class) }}
{% for error in item.errors %} {{ error }} {% endfor %}
{% else %} {% if item.type == 'BooleanField' %} {{ item(class=theme.form.check_class) }} {% else %} {{ item(class=theme.form.input_class) }} {% endif %} {% endif %} {% endif %} {% endfor %}

{{ form.submit(class=theme.form.submit_class, style=theme.form.submit_style) }}