{% macro render_field_with_errors(field) %}
{{ field.label }} {{ field(**kwargs)|safe }} {% if field.errors %} {% endif %}
{% endmacro %} {% macro render_field(field) %}
{{ field(**kwargs)|safe }}
{% endmacro %} {% macro render_field_errors(field) %}
{% if field and field.errors %} {% endif %}
{% endmacro %} {# render WTForms (>3.0) form level errors #} {% macro render_form_errors(form) %} {% if form.form_errors %}
{% endif %} {% endmacro %} {% macro prop_next() -%} {% if 'next' in request.args %}?next={{ request.args.next|urlencode }}{% endif %} {%- endmacro %}