Açıklama Yok

login.html 939B

123456789101112131415161718192021222324252627
  1. {% extends "registration/base.html" %}
  2. {% load bootstrap3 %}
  3. {% block registration_content %}
  4. <h2>Login</h2>
  5. {% if next %}
  6. {% if user.is_authenticated %}
  7. <div class="alert alert-danger alert-dismissable alert-link">
  8. <button class="close" type="button" data-dismiss="alert" aria-hidden="true">&#215;</button>
  9. Your account doesn't have access to this page. To proceed, please login with an account that has access.
  10. </div>
  11. {% else %}
  12. <p>Please login to view this page.</p>
  13. {% endif %}
  14. {% endif %}
  15. <form class="form" method="post" action="{% url 'login' %}">
  16. {% csrf_token %}
  17. <input type="hidden" name="next" value="{{ next }}" />
  18. {% bootstrap_form form %}
  19. {% buttons %}
  20. <button type="submit" class="btn btn-primary">Login</button>
  21. <a class="btn btn-default" href="{% url 'password_reset' %}">Forgot password</a>
  22. {% endbuttons %}
  23. </form>
  24. {% endblock %}