diff options
-rw-r--r-- | pytask/templates/registration/login.html | 9 | ||||
-rw-r--r-- | pytask/templates/registration/registration_form.html | 12 |
2 files changed, 6 insertions, 15 deletions
diff --git a/pytask/templates/registration/login.html b/pytask/templates/registration/login.html deleted file mode 100644 index 9063e64..0000000 --- a/pytask/templates/registration/login.html +++ /dev/null @@ -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 %} diff --git a/pytask/templates/registration/registration_form.html b/pytask/templates/registration/registration_form.html index 2b8b9aa..e404236 100644 --- a/pytask/templates/registration/registration_form.html +++ b/pytask/templates/registration/registration_form.html @@ -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 %} |