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

@ -0,0 +1,32 @@
{% extends "_base.html" %}
{% load url from future %}
{% block title %}
{{ block.super }} - Edit user preferences for {{ user }}
{% endblock %}
{% block content %}
{% if updated %}
<div class="alert alert-success">
<strong>Saved!</strong> Your preferences has been saved
</div>
{% endif %}
<h2>
Edit user preferences
</h2>
<form method='post' action='.'>
{% csrf_token %}
<table class="table">
{{ form }}
<tr>
<td></td>
<td>
<input class="btn" type='submit' value="Save" />
</td>
</tr>
</table>
</form>
{% endblock %}