32 lines
969 B
HTML
32 lines
969 B
HTML
{% extends 'base.html' %}
|
|
{% block title %}
|
|
Login
|
|
{% endblock %}
|
|
{% block content %}
|
|
|
|
{% if next %}
|
|
{% if user.is_authenticated %}
|
|
<p>Your account doesn't have access to this page. To proceed,
|
|
please login with an account that has access.</p>
|
|
{% else %}
|
|
<p>Please login to see this page.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
<form method="post" action="{% url 'login' %}">
|
|
{% csrf_token %}
|
|
<div>
|
|
<tb>{{ form.username.label_tag }}</tb>
|
|
<p>{{ form.username }}</p>
|
|
</div>
|
|
<div>
|
|
<p>{{ form.password.label_tag }}</p>
|
|
<p>{{ form.password }}</p>
|
|
</div>
|
|
|
|
<div>
|
|
<input type="submit" value="login"/>
|
|
<input type="hidden" name="next" value="{{ next }}"/>
|
|
</div>
|
|
|
|
</form>
|
|
{% endblock %} |