{% from "layout/errorlist.html" import errorlist %}
{# these macros are only used here so it's better to define them locally #}
{% macro raw_row(html, classes, label) %}
{{ html|safe }}
{% endmacro %}
{% macro row(field, classes, label=None) %}
{% if not label %}
{% set label = field.label %}
{% endif %}
{{ row_custom(field, field.name + ' ' + classes, label) }}
{% endmacro %}
{% macro form_row(form, field_name, classes='') %}
{% set html = form[field_name] %}
{% if form[field_name].help_text %}
{% set html = to_unicode('{old_html}