{% from "components/icon.html" import Icon %} {% macro TextInput(field, placeholder='', validation='anything', paragraph=False) -%} {{ field.label }} {% if field.description %} {{ field.description | safe }} {% endif %} {% if field.errors %} {{ Icon('alert') }} {% endif %} {{ Icon('alert') }} {{ Icon('ok') }} {% if paragraph %} {% else %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {%- endmacro %}