{% load i18n %}
{% for message in messages %}
  {% if message.tags == "info" %}
    <div class="alert-message  info">
      <p><strong>{% trans "Info: " %}</strong>{{ message }}</p>
    </div>
  {% endif %}
  {% if message.tags == "warning" %}
    <div class="alert-message warning">
      <p><strong>{% trans "Warning: " %}</strong>{{ message }}</p>
    </div>
  {% endif %}
  {% if message.tags == "success" %}
    <div class="alert-message  success">
      <p><strong>{% trans "Success: " %}</strong>{{ message }}</p>
    </div>
  {% endif %}
  {% if message.tags == "error" %}
    <div class="alert-message  error">
      <p><strong>{% trans "Error: " %}</strong>{{ message }}</p>
    </div>
  {% endif %}
{% endfor %}
