templates/System/Partials/alerts.html.twig line 1

Open in your IDE?
  1. {% if app.request.getSchemeAndHttpHost() != "https://backoffice.boardingcentre.co.uk" %}
  2. <div style="background: #111; padding: 30px; margin-bottom: 15px;">
  3. <p style="margin: 0; font-size: 30px; color: #FFF;">Domain Mismatch</p>
  4. <p style="margin: 0; font-size: 16px; color: #FFF;">You appear to be accessing this software using a non-standard domain. This suggests that you're likely not looking at the live version. Please <a href="https://www.cardiffwebdevelopment.co.uk/contact">contact us</a> if you're unsure.</p>
  5. </div>
  6. {% endif %}
  7. {% if app.session.flashbag.peek('success') or app.session.flashbag.peek('warning') or app.session.flashbag.peek('error') or app.session.flashbag.peek('error_list') %}
  8. <div class="flash-messages">
  9. {% for flashmessage in app.session.flashbag.get('success') %}
  10. <div class="alert alert-success">
  11. <button type="button" class="close" aria-hidden="true" data-dismiss="alert" style="margin-top: 10px;">&times;</button>
  12. <strong>Success</strong><br/>
  13. {{ flashmessage|raw }}
  14. </div>
  15. {% endfor %}
  16. {% for flashmessage in app.session.flashbag.get('warning') %}
  17. <div class="alert alert-warning">
  18. <button type="button" class="close" aria-hidden="true" data-dismiss="alert" style="margin-top: 10px;">&times;</button>
  19. <strong>Warning</strong><br/>
  20. {{ flashmessage|raw }}
  21. </div>
  22. {% endfor %}
  23. {% for flashmessage in app.session.flashbag.get('error') %}
  24. <div class="alert alert-danger">
  25. <button type="button" class="close" aria-hidden="true" data-dismiss="alert" style="margin-top: 10px;">&times;</button>
  26. <strong>Error</strong><br/>
  27. {{ flashmessage|raw }}
  28. </div>
  29. {% endfor %}
  30. {% for errors in app.session.flashbag.get('error_list') %}
  31. <div class="alert alert-danger">
  32. <ul class="m-0">
  33. {% for someMessage in errors %}
  34. <li>{{ someMessage }}</li>
  35. {% endfor %}
  36. </ul>
  37. </div>
  38. {% endfor %}
  39. </div>
  40. {% endif %}