registration.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'SharixAdmin/base.html' %}
  2. {% load static %}
  3. {% block content %}
  4. <div class="text-center" style="margin-top: 150px;">
  5. <div class="form-signin" style="width: 100%; max-width:330px; margin: auto; display:block;">
  6. <form class="m-2 p-2" method="post">
  7. <img class="mb-4" src="{% static 'SharixAdmin/img/logo.png' %}" alt="" style="height: 100px;">
  8. <h1 class="h3 mb-3 fw-normal">Регистрация в {{ NameSystem }}</h1>
  9. {% csrf_token %}
  10. {% for item in form %}
  11. <div class="form-floating my-3">
  12. {{item}}
  13. <label for="{{ item.id_for_label }}">{{ item.label }}</label>
  14. </div>
  15. {% if item.errors %}
  16. <div class="alert alert-danger" role="alert">
  17. {{ item.errors }}
  18. </div>
  19. {% endif %}
  20. {% endfor %}
  21. {% if form.non_field_errors %}
  22. <div class="alert alert-danger" role="alert">
  23. Please, enter the correct phone number and password.
  24. </div>
  25. {% endif %}
  26. <div>
  27. <a class="w-100 btn btn-primary btn-lg mb-3" href="{% url 'authweb' %}">Авторизация</a>
  28. <button class="w-100 btn btn-primary btn-lg" type="submit">Зарегистрироваться</button>
  29. </div>
  30. <p class="mt-5 mb-3 text-muted">© 2022</p>
  31. </form>
  32. </div>
  33. </div>
  34. {% endblock %}