{% macro field_errors(field) %} {% endmacro %} {% macro horizontal_field(field, length=6, label=True, static=False) %}
{% if label %} {{ field.label(class="col-md-2 control-label") }} {% endif %}
{{ field(class="form-control", placeholder=field.description, **kwargs) }} {{ field_errors(field) }}
{% endmacro %} {% macro checkbox_field(field) %}
{{ field() }} {{ field.label() }}
{% endmacro %} {% macro form_submit(btn_text) %}
{% endmacro %}