123456789101112131415161718192021222324252627282930313233 |
- {% extends 'SharixAdmin/base.html' %}
- {% load static %}
- {% block content %}
- <div class="text-center" style="margin-top: 150px;">
- <div class="form-signin" style="width: 100%; max-width:330px; margin: auto; display:block;">
- <form class="m-2 p-2" method="post">
- <img class="mb-4" src="{% static 'SharixAdmin/img/logo.svg' %}" alt="" width="72" >
- <h1 class="h3 mb-3 fw-normal">Sign in</h1>
- {% csrf_token %}
-
- {% for item in form %}
- <div class="form-floating my-3">
- {{item}}
- <label for="{{ item.id_for_label }}">{{ item.label }}</label>
- </div>
- {% if item.errors %}
- <div class="alert alert-danger" role="alert">
- {{ item.errors }}
- </div>
- {% endif %}
- {% endfor %}
- {% if form.non_field_errors %}
- <div class="alert alert-danger" role="alert">
- Please, enter the correct phone number and password.
- </div>
- {% endif %}
- <button class="w-100 btn btn-primary btn-lg" type="submit">Sign up</button>
- <p class="mt-5 mb-3 text-muted">© 2022</p>
- </form>
- </div>
- </div>
- {% endblock %}
|