{% for item in form %} {% if item.id == 'submit' %} {% elif item.id == 'csrf_token' %} {% else %} {% if item.type in ['StringField', 'TextAreaField', 'PasswordField'] %} {{ 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) }}