123456789101112131415161718192021222324252627282930313233343536 |
- {% 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.png' %}" alt="" style="height: 100px;">
- <h1 class="h3 mb-3 fw-normal">Регистрация в {{ NameSystem }}</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 %}
- <div>
- <a class="w-100 btn btn-primary btn-lg mb-3" href="{% url 'authweb' %}">Авторизация</a>
- <button class="w-100 btn btn-primary btn-lg" type="submit">Зарегистрироваться</button>
- </div>
- <p class="mt-5 mb-3 text-muted">© 2022</p>
- </form>
- </div>
- </div>
- {% endblock %}
|