{#- Form fields. Every field has a label, its error under it and the error tied to the input for screen readers. -#} {% macro text(name, label, value="", err="", hint="", req=false, type="text", list="", auto="off", cls="", ph="") -%}
{%- if hint %}

{{ hint }}

{%- endif %} {%- if err %}

{{ err }}

{%- endif %}
{%- endmacro %} {% macro select(name, label, value, options, err="", hint="", blank="Not recorded", cls="", req=false) -%}
{%- if hint %}

{{ hint }}

{%- endif %} {%- if err %}

{{ err }}

{%- endif %}
{%- endmacro %} {% macro area(name, label, value="", err="", hint="", rows=3, cls="", fcls="") -%}
{%- if hint %}

{{ hint }}

{%- endif %} {%- if err %}

{{ err }}

{%- endif %}
{%- endmacro %}