{# functions #} {% macro left_arrow(target,label) %}
{{label}}
{% endmacro %} {% macro right_arrow(target,label) %}
{{label}}
{% endmacro %} {% macro colorize(fgcolor=None, bgcolor=None, tag='span') -%} {% if not fgcolor and not bgcolor %} {{ caller() }} {% else %} {% set style = "" %} {% if fgcolor: %}{% set style = style ~ " color: " ~ fgcolor %}{% endif %} {% if bgcolor: %}{% set style = style ~ " background: " ~ bgcolor %}{% endif %} <{{tag}} style="{{style}}">{{caller()}} {% endif %} {% endmacro %} {% macro render_form(form) %} {% for field in form if not field is hidden %} {% endfor %}
{{ field.label }}{{ field(**kwargs.get(field.short_name, {})) }}{{ field.description }} {% if field.errors %}{{ field.errors[0] }}{% endif %}
{{ form.hidden_tag() }} {% endmacro %}