{% macro render_errors(field) %} {% for e in field.errors %}

{{ e }}

{% endfor %} {% endmacro %} {% macro render_field(field, label=None, label_visible=true, right_url=None, right_label=None, fieldclass=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label and label != "" %}{% set label=field.label.text %}{% endif %} {% if label %}{% endif %} {% endif %} {{ field(class_=fieldclass or 'form-control', **kwargs) }} {{ render_errors(field) }}
{%- endmacro %} {% macro render_field_prefix(field, label=None, prefix="@", label_visible=true, right_url=None, right_label=None, fieldclass=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label and label != "" %}{% set label=field.label.text %}{% endif %} {% if label %}{% endif %} {% endif %}
{{ prefix }}
{{ field(class_=fieldclass or 'form-control', **kwargs) }}
{{ render_errors(field) }}
{%- endmacro %} {% macro render_field_prefix_button(field, label=None, prefix="@", label_visible=true, right_url=None, right_label=None, fieldclass=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label and label != "" %}{% set label=field.label.text %}{% endif %} {% if label %}{% endif %} {% endif %}
{{ prefix }}
{{ field(class_=fieldclass or 'form-control', **kwargs) }} View
{{ render_errors(field) }}
{%- endmacro %} {% macro form_scripts() -%} {% endmacro %} {% macro package_lists() -%} {% endmacro %} {% macro render_multiselect_field(field, label=None, label_visible=true, right_url=None, right_label=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label %}{% set label=field.label.text %}{% endif %} {% endif %}
{{ field(class_='form-control', **kwargs) }} {{ render_errors(field) }}
{% endmacro %} {% macro render_mpackage_field(field, label=None, label_visible=true, right_url=None, right_label=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label %}{% set label=field.label.text %}{% endif %} {% endif %}
{{ field(class_='form-control', **kwargs) }}
{{ render_errors(field) }}
{% endmacro %} {% macro render_deps_field(field, label=None, label_visible=true, right_url=None, right_label=None) -%}
{% if field.type != 'HiddenField' and label_visible %} {% if not label %}{% set label=field.label.text %}{% endif %} {% endif %}
{{ field(class_='form-control', **kwargs) }}
{{ render_errors(field) }}
{% endmacro %} {% macro render_checkbox_field(field, label=None) -%} {% if not label %}{% set label=field.label.text %}{% endif %}
{%- endmacro %} {% macro render_radio_field(field) -%} {% for value, label, checked in field.iter_choices() %}
{% endfor %} {%- endmacro %} {% macro render_toggle_field(field, icons=[]) -%}
{% for value, label, checked in field.iter_choices() %} {% endfor %}
{%- endmacro %} {% macro render_submit_field(field, label=None, tabindex=None) -%} {% if not label %}{% set label=field.label.text %}{% endif %} {##} {%- endmacro %}