6
0

registration.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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.svg' %}" alt="" width="72" >
  8. <h1 class="h3 mb-3 fw-normal">Sign in</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. <button class="w-100 btn btn-primary btn-lg" type="submit">Sign up</button>
  27. <p class="mt-5 mb-3 text-muted">© 2022</p>
  28. </form>
  29. </div>
  30. </div>
  31. {% endblock %}