 -%}
        <ul class="help-block">
            {% for error in field.errors -%}
            <li>{{ error }}</li>
            {%- endfor %}
        </ul>
        {%- endif %}
    </div>
</div>
{% endmacro %}

{% macro render_input(field) %}
<div class="form-group {% if field.errors %}has-danger{% endif %}">
    <label for="{{ field.id }}">{{ field.label }}</label>
    {{ field(class_="form-control") }}
    <span class="help-inline">{{ field.description }}</span>

    {% if field.errors -%}
        <ul clas