You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
962 B
43 lines
962 B
7 months ago
|
{% extends "base_template.html" %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<div>Login</div>
|
||
|
|
||
|
{% if form.errors %}
|
||
|
<p>Your username and password didn't match. Please try again.</p>
|
||
|
{% endif %}
|
||
|
|
||
|
{% 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 class="login-form"
|
||
|
id="login-form"
|
||
|
method="post"
|
||
|
action="{% url 'login' %}"
|
||
|
>
|
||
|
{% csrf_token %}
|
||
|
<div>
|
||
|
<div>{{ form.username.label_tag }}</div>
|
||
|
<div>{{ form.username }}</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div>{{ form.password.label_tag }}</div>
|
||
|
<div>{{ form.password }}</div>
|
||
|
</div>
|
||
|
<div class="login-button"
|
||
|
onclick="document.forms['login-form'].submit();"
|
||
|
>
|
||
|
Login
|
||
|
</div>
|
||
|
<input type="submit" value="login" hidden="hidden">
|
||
|
<input type="hidden" name="next" value="{{ next }}">
|
||
|
</form>
|
||
|
|
||
|
{% endblock %}
|