2015-04-28 03:24:02 +00:00
|
|
|
{% extends 'registration/registration_base.html' %}
|
2016-05-11 14:41:50 +00:00
|
|
|
|
2011-09-04 04:21:51 +00:00
|
|
|
{% block title %}Change password{% endblock %}
|
2011-11-19 00:50:47 +00:00
|
|
|
{% block doccontent %}
|
2012-01-13 17:34:42 +00:00
|
|
|
|
2011-11-19 00:50:47 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<form method='post' action=''>{% csrf_token %}
|
|
|
|
|
|
|
|
{{ form.as_p }}
|
|
|
|
<p><input type='submit' value="Change password" /></p>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
{% else %}
|
2012-01-13 17:34:42 +00:00
|
|
|
<div>You must be logged in to change your password.</div>
|
2015-04-28 03:24:02 +00:00
|
|
|
<a href="{% url 'superlogin' %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}/next/{% endif %}" class="nounderline"><div class="actionbutton">Log in</div></a>
|
2011-11-19 00:50:47 +00:00
|
|
|
{% endif %}
|
2012-01-13 17:34:42 +00:00
|
|
|
|
2016-07-27 17:02:47 +00:00
|
|
|
<p>Want to <a href="{% url 'edit_user' %}">change your username</a> instead?</p>
|
2011-09-04 04:21:51 +00:00
|
|
|
{% endblock %}
|