From a389359b74e842702fbb76ba31f2608c4a141c63 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Fri, 27 May 2011 15:09:44 +0200 Subject: Added templates for mobile devices. --- templates/changepw/base_m.html | 28 ++++++++++++++++ templates/changepw/change_other_m.html | 41 +++++++++++++++++++++++ templates/changepw/change_password.html | 5 ++- templates/changepw/change_password_m.html | 55 +++++++++++++++++++++++++++++++ templates/changepw/index_m.html | 32 ++++++++++++++++++ templates/changepw/reset_password_m.html | 31 +++++++++++++++++ 6 files changed, 189 insertions(+), 3 deletions(-) create mode 100644 templates/changepw/base_m.html create mode 100644 templates/changepw/change_other_m.html create mode 100644 templates/changepw/change_password_m.html create mode 100644 templates/changepw/index_m.html create mode 100644 templates/changepw/reset_password_m.html (limited to 'templates/changepw') diff --git a/templates/changepw/base_m.html b/templates/changepw/base_m.html new file mode 100644 index 0000000..130719e --- /dev/null +++ b/templates/changepw/base_m.html @@ -0,0 +1,28 @@ + + + + + + + {% block title %}{% endblock %} + + + + + {% block js %}{% endblock %} + + + +
+
+ {% block header %}{% endblock %} +
+
+ {% block content %}{% endblock %} +
+
+ {% block footer %}{% endblock %} +
+
+ + diff --git a/templates/changepw/change_other_m.html b/templates/changepw/change_other_m.html new file mode 100644 index 0000000..df30d9d --- /dev/null +++ b/templates/changepw/change_other_m.html @@ -0,0 +1,41 @@ +{% extends "base_m.html" %} +{% block js %} +{% endblock %} +{% block title %}Change other{% endblock %} + +{% block header %}

Change other

{% endblock %} + +{% block content %} +

Change other

+{% if return_value == None %} +
{% csrf_token %} + + + + + + + + + + +
Some input:
+ +
+
+{% else %} + {% if return_value == 0 %} +

Updated successfully.

+ {% else %} +

Something went wrong. Please contact an administrator.

+

Return code: {{ return_value }}

+ {% endif %} +{% endif %} +{% endblock %} + +{% block footer %} +Back +Log out +{% endblock %} + + diff --git a/templates/changepw/change_password.html b/templates/changepw/change_password.html index 8aff817..bfed25a 100644 --- a/templates/changepw/change_password.html +++ b/templates/changepw/change_password.html @@ -9,10 +9,9 @@ {% if form %}

When thinking of a new password you need to remember to use:

diff --git a/templates/changepw/change_password_m.html b/templates/changepw/change_password_m.html new file mode 100644 index 0000000..2062df0 --- /dev/null +++ b/templates/changepw/change_password_m.html @@ -0,0 +1,55 @@ +{% extends "base_m.html" %} +{% block js %} {% endblock %} + +{% block title %}Change password{% endblock %} + +{% block header %}

Change password

{% endblock %} + +{% block content %} +{% if form %} +

When thinking of a new password you need to remember to use:

+ + +

+ {{ form.non_field_errors }} +

+
{% csrf_token %} + + + + + {% for field in form %} + + + + + + + {% endfor %} +
Username:{{ username }}
{{ field.errors }}
{{ field.label_tag }}{{ field }}
+ +
+ +{% else %} + {% if return_value == 0 %} +

Your password was changed successfully.

+ {% else %} +

Something went wrong. Please contact an administrator.

+

Return code: {{ return_value }}

+ {% endif %} +{% endif %} +{% endblock %} + +{% block footer %} +Back +Log out +{% endblock %} + diff --git a/templates/changepw/index_m.html b/templates/changepw/index_m.html new file mode 100644 index 0000000..2c1f5f8 --- /dev/null +++ b/templates/changepw/index_m.html @@ -0,0 +1,32 @@ +{% extends "base_m.html" %} +{% block js %}{% endblock %} +{% block title %}Password Manager{% endblock %} + +{% block header %} +

Password
Manager

+{% endblock %} + +{% block content %} +
+Hello {{ full_name|capfirst }},
+Welcome to the single sign on password manager site. + +

+ + + + + +
Username:{{ username }}
+
+ + +{% endblock %} + +{% block footer %} +Log out +{% endblock %} + diff --git a/templates/changepw/reset_password_m.html b/templates/changepw/reset_password_m.html new file mode 100644 index 0000000..7f1749b --- /dev/null +++ b/templates/changepw/reset_password_m.html @@ -0,0 +1,31 @@ +{% extends "base_m.html" %} +{% block js %}{% endblock %} + +{% block title %}Reset password{% endblock %} + +{% block header %}

Reset password

{% endblock %} + +{% block content %} +{% if not return_value %} + {% if new_password %} + Username: {{ username }}/ppp
+ Password: {{ new_password }} + {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +{% else %} +

Something went wrong. Please contact an administrator.

+

Return code: {{ return_value }}

+{% endif %} +{% endblock %} + +{% block footer %} +Back +Log out +{% endblock %} + + + -- cgit v1.1