{% extends 'app/base.html' %} {% load static %} {% block title %} Login {% endblock title %} {% block content %}
<div class="container">
  <div class="row my-3">
    <div class="col-sm-6 offset-sm-3">
      <h3>Login</h3>
      <hr />
      <form action="" method="post" novalidate class="shafow p-5">
        {% csrf_token %} {% for fm in form %} {{fm.label_tag}} {{fm}}
        <small class="text-danger">{{fm.errors | striptags }}</small>
        <br />
        {% endfor %}
        <small
          ><a href="{% url 'password_reset' %}">Forgot Password ?</a></small
        >
        <br />
        <input type="submit" value="Login" class="btn btn-primary mt-4" />
        <div class="text-center text-primary fw-bold">
          <small
            >Don't have an account ?<samp
              ><a href="{% url 'registration' %}" class="text-danger nav-link">
                 SignUp</a
              ></samp
            ></small
          >
        </div>

        {% if form.non_field_errors %}
            {% for error in form.noon_field_errors %}
                <p class="alert alert-danger my-3">{{error}}</p>
            {% endfor %}
        {% endif %}

      </form>
    </div>
  </div>
</div>
{% endblock content %}
