messages.html.twig 707 B

1234567891011121314
  1. {% set admin_messages = admin.messages|merge(admin.getTempMessages()) %}
  2. {% set form_message = form.message %}
  3. <div id="messages" class="top-notifications-container{{ admin_messages|length or form_message ? ' default-box-shadow' : '' }}">
  4. <div class="single-notification info alert hidden" data-gpm-grav></div>
  5. {%- for message in admin_messages -%}
  6. <div class="{{ message.scope|e }} alert">{{ message.message|raw }}</div>
  7. {%- endfor -%}
  8. {%- if form_message -%}
  9. <div class="error alert">{{ form_message|raw }}</div>
  10. {%- endif -%}
  11. {%- for message in plugin_messages -%}
  12. <div class="{{ message.scope|e }} alert">{{ message.message|raw }}</div>
  13. {%- endfor -%}
  14. </div>