aboutsummaryrefslogtreecommitdiffstats
path: root/templates/registration
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-06 15:58:01 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-06 16:55:23 +0000
commit93be8b11720c184092d1b270816ff00e6e698a8c (patch)
treeb2aedaea6faef293214cf010bffdefaf7494f3e5 /templates/registration
parent5308e03c9e090591ca14c66daa0d959dc9993bd8 (diff)
downloadopenembedded-core-contrib-93be8b11720c184092d1b270816ff00e6e698a8c.tar.gz
Move all templates to a templates directory
This should allow the templates to be found and swapped out more easily. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates/registration')
-rw-r--r--templates/registration/activate.html18
-rw-r--r--templates/registration/activation_email.txt12
-rw-r--r--templates/registration/activation_email_subject.txt1
-rw-r--r--templates/registration/login.html24
-rw-r--r--templates/registration/logout.html6
-rw-r--r--templates/registration/password_change_done.html6
-rw-r--r--templates/registration/password_change_form.html10
-rw-r--r--templates/registration/password_reset_complete.html10
-rw-r--r--templates/registration/password_reset_confirm.html29
-rw-r--r--templates/registration/password_reset_done.html6
-rw-r--r--templates/registration/password_reset_email.html5
-rw-r--r--templates/registration/password_reset_form.html19
-rw-r--r--templates/registration/registration_complete.html6
-rw-r--r--templates/registration/registration_form.html20
14 files changed, 172 insertions, 0 deletions
diff --git a/templates/registration/activate.html b/templates/registration/activate.html
new file mode 100644
index 0000000000..e85121e054
--- /dev/null
+++ b/templates/registration/activate.html
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+
+{% if account %}
+
+<p>{% trans "Account successfully activated" %}</p>
+
+<p><a href="{% url auth_login %}">{% trans "Log in" %}</a></p>
+
+{% else %}
+
+<p>{% trans "Account activation failed" %}</p>
+
+{% endif %}
+
+{% endblock %}
diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt
new file mode 100644
index 0000000000..588cb49fa5
--- /dev/null
+++ b/templates/registration/activation_email.txt
@@ -0,0 +1,12 @@
+{% load i18n %}
+{% blocktrans %}
+A request has been made to activate an account at {{ site.name }} using your email address.
+
+If you made this request, please click on the link below to activate your account. The
+link is valid for {{ expiration_days }} days.
+
+http://{{ site.domain }}{% url registration_activate activation_key %}
+
+If you did not make this request, please ignore this message.
+{% endblocktrans %}
+
diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt
new file mode 100644
index 0000000000..24f477cbb8
--- /dev/null
+++ b/templates/registration/activation_email_subject.txt
@@ -0,0 +1 @@
+{% load i18n %}{% trans "Account activation on" %} {{ site.name }}
diff --git a/templates/registration/login.html b/templates/registration/login.html
new file mode 100644
index 0000000000..e41c7291a8
--- /dev/null
+++ b/templates/registration/login.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<form id="login_form" method="post" action=".">
+ {{ form.as_p }}
+
+ <input type="submit" class="btn" value="{% trans 'Log in' %}" />
+ <input type="hidden" name="next" value="{{ next }}" />
+ {% csrf_token %}
+</form>
+
+<p>{% trans "Forgot password" %}? <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a>!</p>
+<p>{% trans "Not a member" %}? <a href="{% url registration_register %}">{% trans "Register" %}</a>!</p>
+{% endblock %}
+
+
+{% block scripts %}
+<script>
+ $(document).ready(function() {
+ $("#login_form input:text, #login_form textarea").first().focus();
+ });
+</script>
+{% endblock %}
diff --git a/templates/registration/logout.html b/templates/registration/logout.html
new file mode 100644
index 0000000000..f8da51fa0d
--- /dev/null
+++ b/templates/registration/logout.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<p>{% trans "Logged out" %}</p>
+{% endblock %}
diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html
new file mode 100644
index 0000000000..659be0a46d
--- /dev/null
+++ b/templates/registration/password_change_done.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<p>{% trans "Password changed" %}</p>
+{% endblock %}
diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html
new file mode 100644
index 0000000000..6e6358e271
--- /dev/null
+++ b/templates/registration/password_change_form.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<form method="post" action=".">
+ {{ form.as_p }}
+
+ <input type="submit" class="btn" value="{% trans 'Submit' %}" />
+</form>
+{% endblock %}
diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html
new file mode 100644
index 0000000000..ef3637c709
--- /dev/null
+++ b/templates/registration/password_reset_complete.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+
+<p>{% trans "Password reset successfully" %}</p>
+
+<p><a href="{% url auth_login %}">{% 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 0000000000..aeda0bf7ea
--- /dev/null
+++ b/templates/registration/password_reset_confirm.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+
+{% if validlink %}
+
+<form id="password_form" method="post" action=".">
+ {{ form.as_p }}
+
+ <input type="submit" class="btn" value="{% trans 'Submit' %}" />
+</form>
+
+{% else %}
+
+<p>{% trans "Password reset failed" %}</p>
+
+{% endif %}
+
+{% endblock %}
+
+
+{% block scripts %}
+<script>
+ $(document).ready(function() {
+ $("#password_form input:text, #password_form textarea").first().focus();
+ });
+</script>
+{% endblock %}
diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html
new file mode 100644
index 0000000000..b8ef93cb99
--- /dev/null
+++ b/templates/registration/password_reset_done.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<p>{% trans "An email with password reset instructions has been sent." %}</p>
+{% endblock %}
diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html
new file mode 100644
index 0000000000..a55c86958b
--- /dev/null
+++ b/templates/registration/password_reset_email.html
@@ -0,0 +1,5 @@
+{% load i18n %}
+{% blocktrans %}Reset password at {{ site_name }}{% endblocktrans %}:
+{% block reset_link %}
+{{ protocol }}://{{ domain }}{% url auth_password_reset_confirm uidb36=uid, token=token %}
+{% endblock %}
diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html
new file mode 100644
index 0000000000..cb2f1d01cc
--- /dev/null
+++ b/templates/registration/password_reset_form.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<form id="password_form" method="post" action=".">
+ {{ form.as_p }}
+
+ <input type="submit" class="btn" value="{% trans 'Submit' %}" />
+</form>
+{% endblock %}
+
+
+{% block scripts %}
+<script>
+ $(document).ready(function() {
+ $("#password_form input:text, #password_form textarea").first().focus();
+ });
+</script>
+{% endblock %}
diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html
new file mode 100644
index 0000000000..c59bd78ad1
--- /dev/null
+++ b/templates/registration/registration_complete.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<p>{% trans "You are now registered, however your account must now be activated. An email has been sent with instructions on how to activate your account." %}</p>
+{% endblock %}
diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html
new file mode 100644
index 0000000000..eac549bbff
--- /dev/null
+++ b/templates/registration/registration_form.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<form id="registration_form" method="post" action=".">
+ {{ form.as_p }}
+
+ <input type="submit" class="btn" value="{% trans 'Submit' %}" />
+ {% csrf_token %}
+</form>
+{% endblock %}
+
+
+{% block scripts %}
+<script>
+ $(document).ready(function() {
+ $("#registration_form input:text, #registration_form textarea").first().focus();
+ });
+</script>
+{% endblock %}