{% macro input_block(for, label="", error="", classes=[], control_classes=[], extra_html="", is_required=false) %}
{% if error and error is iterable %}
{% if error is string %}

{{ error }}

{% elif error is iterable %} {% for e in error %}

{{ e }}

{% endfor %} {% else %}

Invalid value

{% endif %}
{% endif %}
{{ caller() }} {{ extra_html }}
{% endmacro %}