Use the defined templatetag on profile registration form too.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 18 Jan 2011 14:47:26 +0530
changeset 460 408fb012dbae
parent 459 e7b1a685b488
child 461 7f29756a863b
Use the defined templatetag on profile registration form too.
pytask/templates/registration/login.html
pytask/templates/registration/registration_form.html
--- a/pytask/templates/registration/login.html	Tue Jan 18 14:37:54 2011 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-{% extends "base.html" %}
-
-{% load form_helpers %}
-
-{% block content %}
-  {% url auth_login as login_url %}
-  {% as_div_form form "Login Form" csrf_token "Login" login_url %}
-  <a href="{% url auth_password_reset %}">Forgot password?</a>
-{% endblock %}
--- a/pytask/templates/registration/registration_form.html	Tue Jan 18 14:37:54 2011 +0530
+++ b/pytask/templates/registration/registration_form.html	Tue Jan 18 14:47:26 2011 +0530
@@ -1,8 +1,8 @@
-{% extends 'base.html' %}
+{% extends "base.html" %}
+
+{% load form_helpers %}
+
 {% block content %}
-<form action="/accounts/register/" method="post">
-{% csrf_token %}
-{{ form.as_p }}
-<input type="submit" value="Submit" />
-</form>
+  {% url registration_register as registration_url %}
+  {% as_div_form form "Create Task Form" csrf_token "Submit" registration_url %}
 {% endblock %}