lots more stuff
This commit is contained in:
parent
46c9f0a447
commit
c4f250573a
19 changed files with 7619 additions and 149 deletions
31
thinks/templates/registration/login.html
Normal file
31
thinks/templates/registration/login.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% extends "thinks/base.html" %}
|
||||
|
||||
{% block body_class %}login {{block.super}}{% endblock %}
|
||||
|
||||
{% block header %}
|
||||
<h1>Login</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{% 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 method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
{{form}}
|
||||
<button type="submit">Log in</button>
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue