First version
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Login" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Login" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Login" %}</strong>
|
||||
</p>
|
||||
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="{% trans "Login" %}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{# Assumes you setup the password_reset view in your URLconf #}
|
||||
<p><a href="{% url 'password_reset' %}">{% trans "Lost password?" %}</a></p>
|
||||
{% endblock %}
|
@ -0,0 +1,12 @@
|
||||
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Password reset complete" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Password reset complete" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Password reset complete" %}</strong>
|
||||
<br />
|
||||
<p>Your new password has been set. You can log in now on the <a href="{% url 'login' %}">log in page</a>.</p>
|
||||
</p>
|
||||
{% endblock %}
|
@ -0,0 +1,25 @@
|
||||
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Set a new password!" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Set a new password!" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Set a new password!" %}</strong>
|
||||
{% if validlink %}
|
||||
<form method="POST">
|
||||
<table>
|
||||
{% csrf_token %}
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" value="Change my password">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
@ -0,0 +1,13 @@
|
||||
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Reset password, email sent" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Reset password, email sent" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Reset password, email sent" %}</strong>
|
||||
<br />
|
||||
<br />
|
||||
We've emailed you instructions for setting your password. You should receive the email shortly!
|
||||
</p>
|
||||
{% endblock %}
|
@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %} <!-- Add this for inheritance -->
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Reset password" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Reset password" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Reset password" %}</strong>
|
||||
</p>
|
||||
|
||||
|
||||
<form method="post" action="{% url 'password_reset' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.email.label_tag }}</td>
|
||||
<td>{{ form.email }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="Reset my password">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user