Do a lot of little modification (remove most of unused comments)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
<head>
|
||||
<title>Dynastie</title>
|
||||
{% block head %} {% endblock %}
|
||||
<link href="{{ STATIC_URL }}css/dynastie.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a href="/user">Users</a> <a href="/blog">Blogs</a> <a href="/disconnect">Disconnect</a><br/><br/>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
{% block content %}
|
||||
<a href="/blog/{{ blog.id }}?page=0">Home</a> <a href="/category/{{ blog.id }}">Categories</a> <a href="/tag/{{ blog.id }}">Tags</a>
|
||||
{% if edited %}
|
||||
<p class="edited">Blog successfuly updated</p>
|
||||
{% endif %}
|
||||
{% if user.is_superuser %}
|
||||
<form action="/blog/edit/{{ blog.id }}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
Reference in New Issue
Block a user