twidi avatar twidi committed abbae3d

Add missing password reset templates. For these (and all in the registration directory) te be used, the "django.contrib.admin" app MUST be AFTER the "satchmo_store.contact" app, or the admin ones will be used, except if all are redefined in your own project (with its template path "TEMPLATE_DIRS")

Comments (0)

Files changed (3)

satchmo/apps/satchmo_store/contact/templates/registration/password_reset_complete.html

+{% extends "shop/base.html" %}
+{% load i18n %}
+
+{% block navbar %}
+   <li class="first"><a href="{{ shop_base }}/">{% trans "Home" %}</a></li>
+{% endblock %}
+
+{% block content %}
+
+<h2>{% trans 'Password reset complete' %}</h1>
+
+<p>{% trans "Your password has been set.  You may go ahead and log in now." %}</p>
+
+<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p>
+
+{% endblock %}

satchmo/apps/satchmo_store/contact/templates/registration/password_reset_confirm.html

+{% extends "shop/base.html" %}
+{% load i18n %}
+
+{% block navbar %}
+   <li class="first"><a href="{{ shop_base }}/">{% trans "Home" %}</a></li>
+{% endblock %}
+
+{% block content %}
+
+{% if validlink %}
+
+    <h2>{% trans 'Enter new password' %}</h1>
+
+    <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+    <form action="" method="post">{% csrf_token %}
+        <p<label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
+        {% if form.new_password1.errors %}
+            <p class="error">{{ form.new_password2.errors }}</p>
+        {% endif %}
+        <p><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
+        {% if form.new_password1.errors %}
+            <p class="error">{{ form.new_password2.errors }}</p>
+        {% endif %}
+        <p><input type="submit" value="{% trans 'Change my password' %}" /></p>
+    </form>
+
+{% else %}
+
+    <h2>{% trans 'Password reset unsuccessful' %}</h1>
+
+    <p>{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>
+
+{% endif %}
+
+{% endblock %}

satchmo/apps/satchmo_store/contact/templates/registration/password_reset_form.html

 
 <form action="" method="post">{% csrf_token %}
 
+	<label for="id_email">{% trans "Email address" %}:</label> {{ form.email }}
 	{% if form.email.errors %}
 		<p class="error">{{ form.email.errors }}</p>
 	{% endif %}
-	<label for="id_email">{% trans "Email address" %}:</label> {{ form.email }}
 	<p>{% trans "Be sure to enter the same e-mail address you used to register." %}</p>
     <input id="id_submit" type="submit" value="{% trans "Reset password" %}" />
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.