{# functions #} {% macro left_arrow(target,label) %} {% endmacro %} {% macro right_arrow(target,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()}}{{tag}}> {% endif %} {% endmacro %} {% macro render_form(form) %}
{{ field.label }} | {{ field }} | {{ field.description }} | {% if field.errors %}{{ field.errors[0] }}{% endif %} |
---|