{%- for type in ['success', 'error', 'warning', 'info'] -%}
{%- for message in app.session.flashbag.get(type) -%}
toastr.{{ type }}('{{ message|trans({}, 'forms') }}', '{{ ('message.data.' ~ type ~ '.status')|trans({}, 'forms') }}');
{%- endfor -%}
{%- endfor -%}