{% macro message(type, content, raw=false, discreet=false) %}
{% endmacro %} {% macro messages(flash) %} {% set flashed = flash() %} {% set display = 0 %} {% for type, bag in flashed %} {% if bag|length %} {% set display = 1 %} {% endif %} {% endfor %} {% if display %} {% endif %} {% endmacro %} {% macro csrf(getCsrfToken) %} {% endmacro %} {% macro field(_locals, type, name, value, placeholder, hint, validation_attributes='', extraData='', icon=null) %} {% set validation = _locals.validation() %} {% set validation = validation[name] if validation[name] or null %} {% set previousFormData = _locals.previousFormData() %} {% set value = previousFormData[name] or value or validation.value or '' %} {% if type == 'hidden' %} {% if validation %} {{ message('error', validation.message) }} {% endif %} {% else %}