s="help-block">
            {% for error in field.errors %}
            <label class="error mt-2 text-danger" for="{{ field.id }}">{{ error }}</label><br>
            {% endfor %}
        </ul>
    {% endif %}
</div>
{% endmacro %}

{% macro render_action(field) %}
<div class="form-group">
    <div class="form-actions">
        {{ field(class_="btn btn-primary") }}
    </div>
</div>
{% endmacro %}

{% macro render_form(url, form, horizontal=False, legend=None, confirm_msg=None, formid=None) %}
{% set idattr