| 123456789101112131415161718192021222324252627 |
- {% extends "registration/base.html" %}
- {% load bootstrap3 %}
- {% block registration_content %}
- <h2>Login</h2>
- {% if next %}
- {% if user.is_authenticated %}
- <div class="alert alert-danger alert-dismissable alert-link">
- <button class="close" type="button" data-dismiss="alert" aria-hidden="true">×</button>
- Your account doesn't have access to this page. To proceed, please login with an account that has access.
- </div>
- {% else %}
- <p>Please login to view this page.</p>
- {% endif %}
- {% endif %}
- <form class="form" method="post" action="{% url 'login' %}">
- {% csrf_token %}
- <input type="hidden" name="next" value="{{ next }}" />
- {% bootstrap_form form %}
- {% buttons %}
- <button type="submit" class="btn btn-primary">Login</button>
- <a class="btn btn-default" href="{% url 'password_reset' %}">Forgot password</a>
- {% endbuttons %}
- </form>
- {% endblock %}
|