Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

registration templates (incomplete)

  • Loading branch information...
commit 09882d390df6b9ae88cf0df222614ff0a8512a5a 1 parent 5d5563f
@fiee authored
View
36 croisee/templates/registration/login.html
@@ -0,0 +1,36 @@
+{% extends "root.html" %}{% load i18n %}
+{% block title %}{% trans "Login" %}{% endblock %}
+
+{% block rightcol %}
+ {% if form.errors %}
+ <ul class="messages">
+ <li class="error"><span class="ui-icon ui-icon-alert"></span>{% trans "Sorry, that's not a valid username or password" %}</li>
+ </ul>
+ {% endif %}
+{% endblock%}
+
+{% block main_content %}
+ <h2>{% trans "Login" %}</h2>
+
+ <form action="/accounts/login/" method="post" class="login ui-dialog-content">
+ {% csrf_token %}
+ <p>{% trans "Please login using your username and password" %}</p>
+
+ <p class="field_wrapper">
+ <label for="username">{% trans "User name:" %}</label>
+ <span class="field"><input type="text" name="username" value="" id="username" /></span>
+ </p>
+
+ <p class="field_wrapper">
+ <label for="password">{% trans "Password:" %}</label>
+ <input type="password" name="password" value="" id="password" />
+ </p>
+
+ <p class="field_wrapper">
+ <input type="hidden" name="next" value="{{ next|escape }}" />
+ <input type="submit" value="{% trans "Login" %}" />
+ </p>
+
+ </form>
+
+{% endblock %}
View
8 croisee/templates/registration/logout.html
@@ -0,0 +1,8 @@
+{% extends "registration/login.html" %}
+{% load i18n %}
+
+{% block rightcol %}
+<ul class="messages">
+ <li class="info"><span class="ui-icon ui-icon-notice"></span>{% trans "You have logged off." %}</li>
+</ul>
+{% endblock %}
View
12 croisee/templates/registration/password_change_done.html
@@ -0,0 +1,12 @@
+{% extends "root.html" %}
+{% load i18n %}
+
+{% block title %}{% trans 'Password change successful' %}{% endblock %}
+
+{% block main_content %}
+
+<h2>{% trans 'Password change successful' %}</h2>
+
+<p>{% trans 'Your password was changed.' %}</p>
+
+{% endblock %}
View
61 croisee/templates/registration/password_change_form.html
@@ -0,0 +1,61 @@
+{% extends "root.html" %}
+{% load i18n adminmedia %}
+{#
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
+{% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
+#}
+
+{% block title %}{% trans 'Password change' %}{% endblock %}
+
+
+{% block rightcol %}
+ {% if form.errors %}
+ <ul class="messages">
+ <li class="error"><span class="ui-icon ui-icon-alert"></span>{% trans "Sorry, that's not a valid username or password" %}</li>
+ </ul>
+ {% endif %}
+{% endblock%}
+
+
+{% block main_content %}
+
+<form action="" method="post">{% csrf_token %}
+
+ <h2>{% trans 'Password change' %}</h2>
+
+ <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+ <p class="field_wrapper">
+ <label for="id_old_password" class="required">{% trans 'Old password' %}:</label>
+ <span class="field">{{ form.old_password }}</span>
+ {% if form.old_password.errors %}{% for error in form.old_password.errors %}
+ <span class="field_errors">{{ error }} </span>
+ {% endfor %}{% endif %}
+ </p>
+
+ <p class="field_wrapper">
+ <label for="id_new_password1" class="required">{% trans 'New password' %}:</label>
+ <span class="field">{{ form.new_password1 }}</span>
+ {% if form.new_password1.errors %}{% for error in form.new_password1.errors %}
+ <span class="field_errors">{{ error }} </span>
+ {% endfor %}{% endif %}
+ </p>
+
+ <p class="field_wrapper">
+ <label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>
+ <span class="field">{{ form.new_password2 }}</span>
+ {% if form.new_password2.errors %}{% for error in form.new_password2.errors %}
+ <span class="field_errors">{{ error }} </span>
+ {% endfor %}{% endif %}
+ </p>
+
+ <p class="field_wrapper">
+ <span class="label">&nbsp;</span>
+ <span class="field"><input type="submit" value="{% trans 'Change my password' %}" class="default" /></span>
+ </p>
+
+ <script type="text/javascript">document.getElementById("id_old_password").focus();</script>
+</form>
+
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.