{% extends 'layout.html' %}

{% load static %}

{% load crispy_forms_tags %}

{% block layout %}

  {% include 'partials/nav.html' %}

  <div class='container my-3'>

      <!--MESSAGES-->
      {% for message in messages %}
      {% if message.tags == 'error' %}
          <div class="alert alert-danger alert-dismissible fade show message__alerts" role="alert" >
                <strong><span><i class="fa-solid fa-triangle-exclamation"></i></span>&nbsp;&nbsp;MESSAGE : </strong>{{ message }}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
          </div>
      {% else %}
          <div class="alert alert-{{message.tags}} alert-dismissible fade show message__alerts" role="alert">
            <strong>MESSAGE : </strong>{{ message }}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
          </div>
      {% endif %}
    {% endfor %}
    <!--MESSAGES-->
    <div>
        {% block content %}{% endblock %}
    </div>
  </div>

  {% include 'partials/footer.html' %}

<script>
  
</script>

{% endblock %}