euscanwww: Improved forms UI, added preferences page and change password

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino
2012-08-08 10:46:36 +02:00
parent c4e3c4c04a
commit 77f1cb52ea
15 changed files with 140 additions and 56 deletions

View File

@ -5,12 +5,18 @@
{% block content %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
<div class="alert alert-error">
<strong>Error:</strong> Your username and password didn't match. Please try again.
</div>
{% endif %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
<h2>
Login
</h2>
<form method="post" action="{% url "auth_login" %}">
{% csrf_token %}
<table>
<table class="table">
<tr>
<th>{{ form.username.label_tag }}</th>
<td>{{ form.username }}</td>
@ -27,10 +33,10 @@
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>
</td>
<td></td>
<td>
<a class="pull-right" href="{% url "django.contrib.auth.views.password_reset" %}">Forgot password</a>
</td>