diff options
author | Nishanth Amuluru | 2011-01-07 11:43:14 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-07 11:43:14 +0530 |
commit | 8d00566c8b78164b854be7982092b1a5cb93858e (patch) | |
tree | 45c2e19376ab92bea1b44b735aeb41213d247a7f | |
parent | 89e01c60efdcb6eb5151370e2b211fbf2a844de5 (diff) | |
download | pytask-8d00566c8b78164b854be7982092b1a5cb93858e.tar.gz pytask-8d00566c8b78164b854be7982092b1a5cb93858e.tar.bz2 pytask-8d00566c8b78164b854be7982092b1a5cb93858e.zip |
Added all the required templates for django-registration
-rw-r--r-- | templates/profile/edit.html | 8 | ||||
-rw-r--r-- | templates/registration/activate.html | 4 | ||||
-rw-r--r-- | templates/registration/password_change_done.html | 14 | ||||
-rw-r--r-- | templates/registration/password_change_form.html | 26 | ||||
-rw-r--r-- | templates/registration/password_reset_complete.html | 16 | ||||
-rw-r--r-- | templates/registration/password_reset_confirm.html | 32 | ||||
-rw-r--r-- | templates/registration/password_reset_done.html | 14 | ||||
-rw-r--r-- | templates/registration/password_reset_email.html | 15 | ||||
-rw-r--r-- | templates/registration/password_reset_form.html | 19 | ||||
-rw-r--r-- | templates/registration/registration_complete.html | 4 |
10 files changed, 152 insertions, 0 deletions
diff --git a/templates/profile/edit.html b/templates/profile/edit.html new file mode 100644 index 0000000..cc86461 --- /dev/null +++ b/templates/profile/edit.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block content %} +<form action='' method=post> +{% csrf_token %} +{{ form.as_p }} +<input type=submit value=Update /> +</form> +{% endblock %} diff --git a/templates/registration/activate.html b/templates/registration/activate.html new file mode 100644 index 0000000..27181d5 --- /dev/null +++ b/templates/registration/activate.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +Your account has been successfully activated. +{% endblock %} diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html new file mode 100644 index 0000000..db1484f --- /dev/null +++ b/templates/registration/password_change_done.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% load i18n %} +{% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}{% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %} +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> › {% trans 'Password change' %}</div>{% endblock %} + +{% block title %}{% trans 'Password change successful' %}{% endblock %} + +{% block content %} + +<h1>{% trans 'Password change successful' %}</h1> + +<p>{% trans 'Your password was changed.' %}</p> + +{% endblock %} diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html new file mode 100644 index 0000000..71f221c --- /dev/null +++ b/templates/registration/password_change_form.html @@ -0,0 +1,26 @@ +{% extends "base.html" %} +{% load i18n %} +{% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %} +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password change' %}</div>{% endblock %} + +{% block title %}{% trans 'Password change' %}{% endblock %} + +{% block content %} + +<h1>{% trans 'Password change' %}</h1> + +<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p> + +<form action="" method="post"> + +{{ form.old_password.errors }} +<p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p> +{{ form.new_password1.errors }} +<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> +{{ form.new_password2.errors }} +<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> + +<p><input type="submit" value="{% trans 'Change my password' %}" /></p> +</form> + +{% endblock %} diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..ee66d81 --- /dev/null +++ b/templates/registration/password_reset_complete.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> › {% trans 'Password reset' %}</div>{% endblock %} + +{% block title %}{% trans 'Password reset complete' %}{% endblock %} + +{% block content %} + +<h1>{% 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 %} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..b581a7f --- /dev/null +++ b/templates/registration/password_reset_confirm.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password reset confirmation' %}</div>{% endblock %} + +{% block title %}{% trans 'Password reset' %}{% endblock %} + +{% block content %} + +{% if validlink %} + +<h1>{% 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"> +{{ form.new_password1.errors }} +<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> +{{ form.new_password2.errors }} +<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> +<p><input type="submit" value="{% trans 'Change my password' %}" /></p> +</form> + +{% else %} + +<h1>{% 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 %} diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html new file mode 100644 index 0000000..8da70e9 --- /dev/null +++ b/templates/registration/password_reset_done.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password reset' %}</div>{% endblock %} + +{% block title %}{% trans 'Password reset successful' %}{% endblock %} + +{% block content %} + +<h1>{% trans 'Password reset successful' %}</h1> + +<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p> + +{% endblock %} diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html new file mode 100644 index 0000000..4e4bd6d --- /dev/null +++ b/templates/registration/password_reset_email.html @@ -0,0 +1,15 @@ +{% load i18n %}{% autoescape off %} +{% trans "You're receiving this e-mail because you requested a password reset" %} +{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}. + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %} diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html new file mode 100644 index 0000000..38eec4c --- /dev/null +++ b/templates/registration/password_reset_form.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password reset' %}</div>{% endblock %} + +{% block title %}{% trans "Password reset" %}{% endblock %} + +{% block content %} + +<h1>{% trans "Password reset" %}</h1> + +<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p> + +<form action="" method="post"> +{{ form.email.errors }} +<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p> +</form> + +{% endblock %} diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html new file mode 100644 index 0000000..53e85bc --- /dev/null +++ b/templates/registration/registration_complete.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +Please check your email for instructions on activating your account. +{% endblock %} |