| author | cavaliet |
| Fri, 05 Sep 2014 12:43:52 +0200 | |
| changeset 329 | ea6268cf8c83 |
| parent 302 | 106c33871db4 |
| child 330 | 5c171e379ea2 |
| permissions | -rw-r--r-- |
| 293 | 1 |
{% extends "base.html" %} |
2 |
{% load i18n %} |
|
3 |
{% load static %} |
|
| 295 | 4 |
{% load thumbnail %} |
|
329
ea6268cf8c83
renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents:
302
diff
changeset
|
5 |
{% load hdalab_tags %} |
| 293 | 6 |
|
| 294 | 7 |
{% block title %}{{block.super}} > Profil utilisateur : {{ user.username }}{% endblock %} |
| 293 | 8 |
|
9 |
{% block css_import %} |
|
10 |
{{block.super}} |
|
11 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" /> |
|
12 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" /> |
|
13 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" /> |
|
14 |
{% endblock %} |
|
15 |
||
| 297 | 16 |
{% block js_import %} |
17 |
{{block.super}} |
|
18 |
<script src="{% static 'hdalab/js/profile.js' %}"></script> |
|
| 300 | 19 |
<script src="{% static 'hdalab/lib/jquery.tablesorter.min.js' %}"></script> |
20 |
<script type="text/javascript"> |
|
21 |
$(document).ready(function(){ |
|
22 |
console.log("hi"); |
|
23 |
$("#rk-table").tablesorter({headers: { 2: { sorter: false }, 4: { sorter: false } }}); |
|
24 |
}); |
|
25 |
</script> |
|
| 297 | 26 |
{% endblock %} |
27 |
||
| 301 | 28 |
{% block profile_actif %}actif{% endblock %} |
29 |
||
| 293 | 30 |
{% block main_content %} |
|
302
106c33871db4
better presentation and automatic save for renkan from facettes
cavaliet
parents:
301
diff
changeset
|
31 |
<h2>Mon profil</h2> |
|
106c33871db4
better presentation and automatic save for renkan from facettes
cavaliet
parents:
301
diff
changeset
|
32 |
<p><a href="{% url 'renkan_new' %}" >Nouveau Renkan</a> - <a href="{% url 'auth_password_change' %}">Modification du mot de passe</a></p> |
|
106c33871db4
better presentation and automatic save for renkan from facettes
cavaliet
parents:
301
diff
changeset
|
33 |
<p> </p> |
|
106c33871db4
better presentation and automatic save for renkan from facettes
cavaliet
parents:
301
diff
changeset
|
34 |
<p>Mes renkans : </p> |
| 300 | 35 |
<table id="rk-table"> |
36 |
<thead> |
|
|
299
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
37 |
<tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Statut</th><th>Actions</th></tr> |
| 300 | 38 |
</thead> |
39 |
<tbody> |
|
|
299
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
40 |
{% for hr in renkan_list %} |
|
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
41 |
{% with hr.renkan as r %} |
| 293 | 42 |
<tr class="border_bottom"> |
|
329
ea6268cf8c83
renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents:
302
diff
changeset
|
43 |
<td>{{ r.title }}</td> |
| 294 | 44 |
<td>{{ r.modification_date|date:"Y-m-d H:i" }}</td> |
| 295 | 45 |
<td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td> |
|
329
ea6268cf8c83
renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents:
302
diff
changeset
|
46 |
<td>{{ hr.state|state_to_str }}</td> |
| 293 | 47 |
<td> |
| 297 | 48 |
<a title="Edit renkan" href="{% url 'renkan_edit' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-pencil"></span></a> |
| 298 | 49 |
<a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a> |
|
299
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
50 |
<a title="Copy renkan" href="{% url 'renkan_copy' rk_id=r.rk_id %}?next={% url 'profile_home' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to copy this renkan ?" %}');" ><span class="ui-icon ui-icon-copy"></span></a> |
|
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
51 |
<a title="Remove renkan" href="{% url 'renkan_delete' rk_id=r.rk_id %}?next={% url 'profile_home' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to delete this renkan ? You cannot undo this action." %}');" ><span class="ui-icon ui-icon-trash"></span></a> |
|
329
ea6268cf8c83
renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents:
302
diff
changeset
|
52 |
{% if hr.state == 1 %}<a title="Publish renkan" href="{% url 'renkan_moderate' rk_id=r.rk_id state=2 %}?next={% url 'profile_home' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to ask to publish this renkan ?" %}');" ><span class="ui-icon ui-icon-unlocked"></span></a> |
|
ea6268cf8c83
renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents:
302
diff
changeset
|
53 |
{% else %}<a title="Unpublish renkan" href="{% url 'renkan_moderate' rk_id=r.rk_id state=1 %}?next={% url 'profile_home' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to unpublish this renkan ?" %}');" ><span class="ui-icon ui-icon-locked"></span></a>{% endif %} |
| 293 | 54 |
</td> |
55 |
</tr> |
|
|
299
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
56 |
{% endwith %} |
| 294 | 57 |
{% endfor %} |
| 300 | 58 |
</tbody> |
| 293 | 59 |
</table> |
60 |
{% endblock %} |