Do a lot of little modification (remove most of unused comments)

This commit is contained in:
2012-12-24 16:34:30 +01:00
parent e068c4b24c
commit 152e2ab0a6
6 changed files with 87 additions and 100 deletions

View File

@@ -2,13 +2,14 @@
{% block content %}
{% if edited %}
<p style="color:green">User successfuly updated</p>
<p class="edited">User successfuly updated</p>
{% endif %}
{% if user.is_superuser or user.id == user_to_edit.id %}
<form action="/user/edit/{{ user_to_edit.id }}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="edit" value="Edit" /><input type="submit" name="cancel" value="Cancel" />
<p><label for="id_password">Password:</label> <input id="id_password" type="text" name="password" maxlength="128" /></p>
<input type="submit" name="edit" value="Edit" /><input type="submit" name="cancel" value="Cancel" />{% if user.is_superuser %}<input type="submit" name="delete" value="Delete" onclick="return confirm('Do you really want to delete this item ?')"/>{% endif %}
</form>
{% else %}
<form action="/user/edit/{{ user_to_edit.id }}" method="post">