{% if plainText is defined and plainText %} {% for notice in app.session.flashBag.get('notice') %}
{{notice|raw|nl2br}}
{% endfor %} {% for error in app.session.flashBag.get('error') %}{{error|raw|nl2br}}
{% endfor %} {% if form is defined and form.vars.errors|length %}{% for o in form.vars.errors %} {{ o.message|raw|nl2br }} {% endfor %}
{% endif %} {% if error is defined and error %}{{ error|raw|nl2br }}
{% endif %} {% else %} {% for notice in app.session.flashBag.get('notice') %}{{notice|raw|nl2br}}
{{error|raw|nl2br}}
{% for o in form.vars.errors %} {{ o.message|raw|nl2br }} {% endfor %}
{{ error|raw|nl2br }}