{% macro required_note() -%}

* {{ _('Required fields') }}

{%- endmacro %} {% macro required() -%} * {%- endmacro %} {% macro optional() -%} {{ _('(optional)') }} {%- endmacro %} {% macro pretty_field(field, label=None, tooltip=None, tag='li', req=None, opt=False, choice=None, class='row') %} {% if tag %} <{{ tag }} class="{{ class }}{{ ' error' if field.errors }}"> {% endif %} {% if choice == None %} {% set choice = field|is_choice_field %} {% endif %} {% if not choice %} {{ field.as_widget() }} {% endif %} {{ field.errors }} {% if tag %} {% endif %} {% endmacro %} {% macro tip(name, tip) %} {% if name %} {{ name }} {% endif %} ? {% endmacro %}