From 982223f4aa33e7dd7fc92247ff9bf93b87297cbc Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 25 Feb 2010 18:28:32 +0000 Subject: [PATCH] Brought over basic templates from mumble-django --- templates/registration/activate.html | 17 +++++ templates/registration/activation_email.txt | 13 ++++ .../registration/activation_email_subject.txt | 1 + templates/registration/imprint.html | 17 +++++ templates/registration/login.html | 32 +++++++++ templates/registration/logout.html | 9 +++ templates/registration/profile.html | 69 +++++++++++++++++++ .../registration/registration_complete.html | 8 +++ templates/registration/registration_form.html | 15 ++++ 9 files changed, 181 insertions(+) create mode 100644 templates/registration/activate.html create mode 100644 templates/registration/activation_email.txt create mode 100644 templates/registration/activation_email_subject.txt create mode 100644 templates/registration/imprint.html create mode 100644 templates/registration/login.html create mode 100644 templates/registration/logout.html create mode 100644 templates/registration/profile.html create mode 100644 templates/registration/registration_complete.html create mode 100644 templates/registration/registration_form.html diff --git a/templates/registration/activate.html b/templates/registration/activate.html new file mode 100644 index 0000000..7999340 --- /dev/null +++ b/templates/registration/activate.html @@ -0,0 +1,17 @@ +{% load i18n %} + +{% block Content %} +{% if account %} +

{% with account.username as username %} + Thank you for registering!
+ From now on, you can login with your username ({{ username }}).
+
+ Back + {% endwith %} +

+{% else %} +

Either the link was invalid, or you didn't activate your account within {{ expiration_days }} days after the registration. Please register again.

+{% endif %} + +{% endblock %} + diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt new file mode 100644 index 0000000..472918a --- /dev/null +++ b/templates/registration/activation_email.txt @@ -0,0 +1,13 @@ +{% load i18n %} +Hello, + +someone registered to {{ site }} and specified this EMail address. If this is correct, please follow this link to activate the account: + +http://{{ site|slice:":-1" }}{% url registration_activate activation_key=activation_key %} + +In case you didn't register, please ignore this Mail. The account will be deleted in {{ expiration_days }} days and you will not receive any more mail from us. + +Regards, + +Matalok +Mumble Admin diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt new file mode 100644 index 0000000..5af014e --- /dev/null +++ b/templates/registration/activation_email_subject.txt @@ -0,0 +1 @@ +Account verification diff --git a/templates/registration/imprint.html b/templates/registration/imprint.html new file mode 100644 index 0000000..04078b7 --- /dev/null +++ b/templates/registration/imprint.html @@ -0,0 +1,17 @@ +{% load mumble_extras %} +{% load i18n %} + +{% block Headline %}{% trans "Imprint" %}{% endblock %} + +{% block Content %} +
+

+ This is Mumble-Django, a Murmur config application for Django that configures a Mumble server. It is able to create and remove server instances, start/stop them, and configure them.
+
+ Furthermore, registered Django users can sign up for user accounts on the configured vservers and change their registration names and passwords, and Django admins can manage server admins through the webinterface.
+
+ It is being developed by Michael "Svedrin" Ziegler. +

+

All JavaScript elements were implemented using the ExtJS JavaScript library.

+
+{% endblock %} diff --git a/templates/registration/login.html b/templates/registration/login.html new file mode 100644 index 0000000..42deda4 --- /dev/null +++ b/templates/registration/login.html @@ -0,0 +1,32 @@ +{% load i18n %} +{% block HeadTag %} + +{% endblock %} + +{% block Content %} + +

Login

+ +{% if form.errors %} +

Username or password don't exist or are not correct. Please try again.

+{% endif %} + +
+ + + +
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
+ + + +
+ +{% endblock %} + diff --git a/templates/registration/logout.html b/templates/registration/logout.html new file mode 100644 index 0000000..ed7e791 --- /dev/null +++ b/templates/registration/logout.html @@ -0,0 +1,9 @@ +{% load i18n %} + +{% block Headline %}Logged out{% endblock %} + +{% block Content %} +

You have been logged out.

+

Thank you for visiting. +

+{% endblock %} diff --git a/templates/registration/profile.html b/templates/registration/profile.html new file mode 100644 index 0000000..353aec3 --- /dev/null +++ b/templates/registration/profile.html @@ -0,0 +1,69 @@ +{% load i18n %} + +{% block Content %} +

{% blocktrans with user|capfirst as username %}Profile of {{username}}{% endblocktrans %}

+ + + + +{% if mumbleacc %} + +{% else %} + +{% if eveapi %} + +{% else %} + +{% endif %} + +{% endif %} + +{% if corpaccess %} + +{% else %} + +{% endif %} + +{% if corpaccess %} + +{% else %} + +{% endif %} + +{% if corpaccess %} + +{% else %} + +{% endif %} +
ServiceServerStatusLoginOther
Mumblemumble.dredd.itActive{{ mumbleacc.name }}Delete
Mumblemumble.dredd.itInactiveN/A Create Mumble Login
Jabberjabber.dredd.itActive{{ user.username }}@dredd.it
Jabberjabber.dredd.itInactive
Wikiwiki.dredd.itActive{{ user.username }}
Wikiwiki.dredd.itInactive
Forumsforum.dredd.itUnkown{{ user.username }}
Forumsforum.dredd.itUnknown
+ + +
+

EVE API Key

+{% if eveapi %} + + Delete EVE API Key +{% else %} + Add EVE API key +{% endif %} + +
+ +
+

{% trans "Login Account" %}

+ +
+{% endblock %} + diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html new file mode 100644 index 0000000..982b12c --- /dev/null +++ b/templates/registration/registration_complete.html @@ -0,0 +1,8 @@ +{% load i18n %} + +{% block Content %} +

Thank you for registering. +In order to prohibit misuse, you need to activate your account before you can use it. We sent an EMail with further instructions to the address you specified, please follow the link in that email to activate your account. +

+{% endblock %} + diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html new file mode 100644 index 0000000..f042f5d --- /dev/null +++ b/templates/registration/registration_form.html @@ -0,0 +1,15 @@ +{% load i18n %} + +{% block Headline %}Create Account{% endblock %} + +{% block Content %} +

Create Account

+

Please fill in the following form.

+ +
+ + {{ form }} +
+ +
+{% endblock %}