{% if form.message %} {% set icon_mapping = {'success':'checkmark', 'error':'wrong', 'warning':'information'} %} {% set message = form.inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}