summaryrefslogtreecommitdiff
path: root/app/lib/grappelli/templates/registration
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/grappelli/templates/registration')
-rw-r--r--app/lib/grappelli/templates/registration/logged_out.html18
-rw-r--r--app/lib/grappelli/templates/registration/password_change_done.html24
-rw-r--r--app/lib/grappelli/templates/registration/password_change_form.html60
-rw-r--r--app/lib/grappelli/templates/registration/password_reset_complete.html12
-rw-r--r--app/lib/grappelli/templates/registration/password_reset_confirm.html23
-rw-r--r--app/lib/grappelli/templates/registration/password_reset_done.html11
-rw-r--r--app/lib/grappelli/templates/registration/password_reset_email.html15
-rw-r--r--app/lib/grappelli/templates/registration/password_reset_form.html15
8 files changed, 178 insertions, 0 deletions
diff --git a/app/lib/grappelli/templates/registration/logged_out.html b/app/lib/grappelli/templates/registration/logged_out.html
new file mode 100644
index 0000000..31e9db4
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/logged_out.html
@@ -0,0 +1,18 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+{% block content-class %}content-flexible{% endblock %}
+
+{% block breadcrumbs %}{% comment %}<div id="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endcomment %}{% endblock %}
+{% block content_title %}&nbsp;{% endblock %}
+
+{% block content %}
+ <div class="container-flexible logout">
+ <div class="column span-10 centered">
+ <h1>{{ title }}. <a href="../"><strong>{% trans 'Log in again' %}</strong></a></h1>
+ {% comment %}<div class="module">
+ <h2>{{ title }}, </h2>
+ <div class="row"><a href="../"><strong>{% trans 'Log in again' %}</strong></a></div>
+ </div>{% endcomment %}
+ </div>
+ </div>
+{% endblock %}
diff --git a/app/lib/grappelli/templates/registration/password_change_done.html b/app/lib/grappelli/templates/registration/password_change_done.html
new file mode 100644
index 0000000..bfd01ab
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_change_done.html
@@ -0,0 +1,24 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+{% block userlinks %}
+ {% url django-admindocs-docroot as docsroot %}
+ {% if docsroot %}
+ <li>
+ <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
+ </li>
+ {% endif %}
+ <li>
+ <a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a>
+ </li>
+ <li>
+ <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>
+ </li>
+{% endblock %}
+
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% 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/app/lib/grappelli/templates/registration/password_change_form.html b/app/lib/grappelli/templates/registration/password_change_form.html
new file mode 100644
index 0000000..e4d175f
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_change_form.html
@@ -0,0 +1,60 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %} {# grp_csrf #}
+{% block userlinks %}
+{% url django-admindocs-docroot as docsroot %}{% if docsroot %}
+<li>
+ <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
+</li>
+{% endif %}
+<li>
+ <a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a>
+</li>
+<li>
+ <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>
+</li>
+{% endblock %}
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
+{% block title %}{% trans 'Password change' %}{% endblock %}
+{% block content-class %}content-grid{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Password change' %}</h1>
+
+<div class="container-grid">
+ <div class="column span-12">
+ <p>{% trans "Please enter your old password, for securitys sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
+ <form action="" method="post">{% csrf_token %}
+ <fieldset class="module">
+ <div class="row">
+ <div class="column span-4"><label for="id_old_password" class="required">{% trans 'Old password:' %}</label></div>
+ <div class="column span-flexible">
+ {{ form.old_password }}
+ {{ form.old_password.errors }}
+ </div>
+ </div>
+ <div class="row">
+ <div class="column span-4"><label for="id_new_password1" class="required">{% trans 'New password:' %}</label></div>
+ <div class="column span-flexible">
+ {{ form.new_password1 }}
+ {{ form.new_password1.errors }}
+ </div>
+ </div>
+ <div class="row">
+ <div class="column span-4"><label for="id_new_password2" class="required">{% trans 'Confirm password:' %}</label></div>
+ <div class="column span-flexible">
+ {{ form.new_password2 }}
+ {{ form.new_password2.errors }}
+ </div>
+ </div>
+ </fieldset>
+ <div class="module submit-row">
+ <ul class="submit-row">
+ <li class="submit-button-container"><input type="submit" value="{% trans 'Change my password' %}" class="default" /></li>
+ </ul>
+ </div>
+ </form>
+ </div>
+</div>
+
+{% endblock %}
diff --git a/app/lib/grappelli/templates/registration/password_reset_complete.html b/app/lib/grappelli/templates/registration/password_reset_complete.html
new file mode 100644
index 0000000..5b14a54
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_reset_complete.html
@@ -0,0 +1,12 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% 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 %} \ No newline at end of file
diff --git a/app/lib/grappelli/templates/registration/password_reset_confirm.html b/app/lib/grappelli/templates/registration/password_reset_confirm.html
new file mode 100644
index 0000000..6aad70f
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_reset_confirm.html
@@ -0,0 +1,23 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %} {# grp_csrf #}
+
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% 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">{% csrf_token %}
+ {{ 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." %}
+ {% endif %}
+{% endblock %}
diff --git a/app/lib/grappelli/templates/registration/password_reset_done.html b/app/lib/grappelli/templates/registration/password_reset_done.html
new file mode 100644
index 0000000..a009281
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_reset_done.html
@@ -0,0 +1,11 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% 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 a new password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
+{% endblock %}
diff --git a/app/lib/grappelli/templates/registration/password_reset_email.html b/app/lib/grappelli/templates/registration/password_reset_email.html
new file mode 100644
index 0000000..4e4bd6d
--- /dev/null
+++ b/app/lib/grappelli/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/app/lib/grappelli/templates/registration/password_reset_form.html b/app/lib/grappelli/templates/registration/password_reset_form.html
new file mode 100644
index 0000000..7933280
--- /dev/null
+++ b/app/lib/grappelli/templates/registration/password_reset_form.html
@@ -0,0 +1,15 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %} {# grp_csrf #}
+
+{% block breadcrumbs %}<div id="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% 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 reset your password and e-mail the new one to you." %}</p>
+ <form action="" method="post">{% csrf_token %}
+ {% if form.email.errors %}{{ form.email.errors }}{% endif %}
+ <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
+ </form>
+{% endblock %}