diff options
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/base.html | 34 | ||||
| -rw-r--r-- | ishtar/templates/index.html | 2 | ||||
| -rw-r--r-- | ishtar/templates/registration/activate.html | 18 | ||||
| -rw-r--r-- | ishtar/templates/registration/activation_email.txt | 6 | ||||
| -rw-r--r-- | ishtar/templates/registration/activation_email_subject.txt | 1 | ||||
| -rw-r--r-- | ishtar/templates/registration/login.html | 18 | ||||
| -rw-r--r-- | ishtar/templates/registration/logout.html | 6 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_change_done.html | 6 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_change_form.html | 10 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_reset_complete.html | 10 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_reset_confirm.html | 20 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_reset_done.html | 6 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_reset_email.html | 5 | ||||
| -rw-r--r-- | ishtar/templates/registration/password_reset_form.html | 10 | ||||
| -rw-r--r-- | ishtar/templates/registration/registration_complete.html | 6 | ||||
| -rw-r--r-- | ishtar/templates/registration/registration_form.html | 10 |
16 files changed, 168 insertions, 0 deletions
diff --git a/ishtar/templates/base.html b/ishtar/templates/base.html new file mode 100644 index 000000000..4f8282bbe --- /dev/null +++ b/ishtar/templates/base.html @@ -0,0 +1,34 @@ +{% load i18n %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + +<head> + <link rel="stylesheet" href="{{MEDIA_URL}}/style.css" /> + <title>{% block title %}Ishtar{% endblock %}</title> +</head> + +<body> + <div id="header"> + {% block header %} + {% if user.is_authenticated %} + {% trans "Logged in" %}: {{ user.username }} + (<a href="{% url auth_logout %}">{% trans "Log out" %}</a> | + <a href="{% url auth_password_change %}">{% trans "Change password" %}</a>) + {% else %} + <a href="{% url auth_login %}">{% trans "Log in" %}</a> + {% endif %} + {% endblock %} + </div> + + <div id="content"> + {% block content %}{% endblock %} + </div> + + <div id="footer"> + {% block footer %} + {% endblock %} + </div> +</body> + +</html> diff --git a/ishtar/templates/index.html b/ishtar/templates/index.html new file mode 100644 index 000000000..c4c0b0f2a --- /dev/null +++ b/ishtar/templates/index.html @@ -0,0 +1,2 @@ +{% extends "base.html" %} +{% load i18n %} diff --git a/ishtar/templates/registration/activate.html b/ishtar/templates/registration/activate.html new file mode 100644 index 000000000..e85121e05 --- /dev/null +++ b/ishtar/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/ishtar/templates/registration/activation_email.txt b/ishtar/templates/registration/activation_email.txt new file mode 100644 index 000000000..b30035969 --- /dev/null +++ b/ishtar/templates/registration/activation_email.txt @@ -0,0 +1,6 @@ +{% load i18n %} +{% trans "Activate account at" %} {{ site.name }}: + +http://{{ site.domain }}{% url registration_activate activation_key %} + +{% blocktrans %}Link is valid for {{ expiration_days }} days.{% endblocktrans %} diff --git a/ishtar/templates/registration/activation_email_subject.txt b/ishtar/templates/registration/activation_email_subject.txt new file mode 100644 index 000000000..24f477cbb --- /dev/null +++ b/ishtar/templates/registration/activation_email_subject.txt @@ -0,0 +1 @@ +{% load i18n %}{% trans "Account activation on" %} {{ site.name }} diff --git a/ishtar/templates/registration/login.html b/ishtar/templates/registration/login.html new file mode 100644 index 000000000..8c5c51670 --- /dev/null +++ b/ishtar/templates/registration/login.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<div class='form'> +<form method="post" action=".">{% csrf_token %} +<table id='login'> +{{ form.as_table }} + <tr class='submit'><td colspan='2'><input type="submit" value="{% trans 'Log in' %}" /></td></tr> + <input type="hidden" name="next" value="{{ next }}" /> +</table> +</form> +</div> +<div class='info'> +<p>{% trans "Forgot password?" %} <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a></p> +<p>{% trans "Not member?" %} <a href="{% url registration_register %}">{% trans "Register" %}</a></p> +</div> +{% endblock %} diff --git a/ishtar/templates/registration/logout.html b/ishtar/templates/registration/logout.html new file mode 100644 index 000000000..f8da51fa0 --- /dev/null +++ b/ishtar/templates/registration/logout.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<p>{% trans "Logged out" %}</p> +{% endblock %} diff --git a/ishtar/templates/registration/password_change_done.html b/ishtar/templates/registration/password_change_done.html new file mode 100644 index 000000000..659be0a46 --- /dev/null +++ b/ishtar/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/ishtar/templates/registration/password_change_form.html b/ishtar/templates/registration/password_change_form.html new file mode 100644 index 000000000..ec782424f --- /dev/null +++ b/ishtar/templates/registration/password_change_form.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<form method="post" action=".">{% csrf_token %} + {{ form.as_p }} + + <input type="submit" value="{% trans 'Submit' %}" /> +</form> +{% endblock %} diff --git a/ishtar/templates/registration/password_reset_complete.html b/ishtar/templates/registration/password_reset_complete.html new file mode 100644 index 000000000..ef3637c70 --- /dev/null +++ b/ishtar/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/ishtar/templates/registration/password_reset_confirm.html b/ishtar/templates/registration/password_reset_confirm.html new file mode 100644 index 000000000..53e1f8359 --- /dev/null +++ b/ishtar/templates/registration/password_reset_confirm.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} + +{% if validlink %} + +<form method="post" action=".">{% csrf_token %} + {{ form.as_p }} + + <input type="submit" value="{% trans 'Submit' %}" /> +</form> + +{% else %} + +<p>{% trans "Password reset failed" %}</p> + +{% endif %} + +{% endblock %} diff --git a/ishtar/templates/registration/password_reset_done.html b/ishtar/templates/registration/password_reset_done.html new file mode 100644 index 000000000..6057ccbe1 --- /dev/null +++ b/ishtar/templates/registration/password_reset_done.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<p>{% trans "Email with password reset instructions has been sent." %}</p> +{% endblock %} diff --git a/ishtar/templates/registration/password_reset_email.html b/ishtar/templates/registration/password_reset_email.html new file mode 100644 index 000000000..a55c86958 --- /dev/null +++ b/ishtar/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/ishtar/templates/registration/password_reset_form.html b/ishtar/templates/registration/password_reset_form.html new file mode 100644 index 000000000..ec782424f --- /dev/null +++ b/ishtar/templates/registration/password_reset_form.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<form method="post" action=".">{% csrf_token %} + {{ form.as_p }} + + <input type="submit" value="{% trans 'Submit' %}" /> +</form> +{% endblock %} diff --git a/ishtar/templates/registration/registration_complete.html b/ishtar/templates/registration/registration_complete.html new file mode 100644 index 000000000..3d3d9507b --- /dev/null +++ b/ishtar/templates/registration/registration_complete.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<p>{% trans "You are now registered. Activation email sent." %}</p> +{% endblock %} diff --git a/ishtar/templates/registration/registration_form.html b/ishtar/templates/registration/registration_form.html new file mode 100644 index 000000000..ec782424f --- /dev/null +++ b/ishtar/templates/registration/registration_form.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +<form method="post" action=".">{% csrf_token %} + {{ form.as_p }} + + <input type="submit" value="{% trans 'Submit' %}" /> +</form> +{% endblock %} |
