{% macro render_errors(field) %} {% for e in field.errors %}
{{ e }}
{% endfor %} {% endmacro %} {% macro render_label(field, label=None, label_visible=true) %} {% if field.type != 'HiddenField' %} {% if not label and label != "" %}{% set label=field.label.text %}{% endif %} {% if label %} {% if field.flags.required and label_visible %} {{ _("Required") }} {% endif %} {% endif %} {% endif %} {% endmacro %} {% macro render_field(field, label=None, label_visible=true, right_url=None, right_label=None, fieldclass=None, hint=None, no_class=False) -%}