|
301
|
1 |
{% extends "base.html" %} |
|
|
2 |
{% load i18n %} |
|
|
3 |
{% load static %} |
|
|
4 |
{% load thumbnail %} |
|
|
5 |
|
|
|
6 |
{% block title %}{{block.super}} > Liste des Renkans publiques{% endblock %} |
|
|
7 |
|
|
|
8 |
{% block css_import %} |
|
|
9 |
{{block.super}} |
|
|
10 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" /> |
|
|
11 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" /> |
|
|
12 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" /> |
|
|
13 |
{% endblock %} |
|
|
14 |
|
|
|
15 |
{% block js_import %} |
|
|
16 |
{{block.super}} |
|
|
17 |
<script src="{% static 'hdalab/js/profile.js' %}"></script> |
|
|
18 |
<script src="{% static 'hdalab/lib/jquery.tablesorter.min.js' %}"></script> |
|
|
19 |
<script type="text/javascript"> |
|
|
20 |
$(document).ready(function(){ |
|
|
21 |
console.log("hi"); |
|
|
22 |
$("#rk-table").tablesorter({headers: { 2: { sorter: false }, 4: { sorter: false } }}); |
|
|
23 |
}); |
|
|
24 |
</script> |
|
|
25 |
{% endblock %} |
|
|
26 |
|
|
|
27 |
{% block renkans_actif %}actif{% endblock %} |
|
|
28 |
|
|
|
29 |
{% block main_content %} |
|
|
30 |
<h2>Liste des renkans publiques</h2> |
|
|
31 |
<table id="rk-table"> |
|
|
32 |
<thead> |
|
|
33 |
<tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Statut</th><th>Actions</th></tr> |
|
|
34 |
</thead> |
|
|
35 |
<tbody> |
|
|
36 |
{% for hr in renkan_list %} |
|
|
37 |
{% with hr.renkan as r %} |
|
|
38 |
<tr class="border_bottom"> |
|
|
39 |
<td>{{ r.title }} ({{ r.id }})</td> |
|
|
40 |
<td>{{ r.modification_date|date:"Y-m-d H:i" }}</td> |
|
|
41 |
<td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td> |
|
|
42 |
<td>{{ hr.state }}</td> |
|
|
43 |
<td> |
|
|
44 |
<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> |
|
|
45 |
<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> |
|
|
46 |
</td> |
|
|
47 |
</tr> |
|
|
48 |
{% endwith %} |
|
|
49 |
{% endfor %} |
|
|
50 |
</tbody> |
|
|
51 |
</table> |
|
|
52 |
{% endblock %} |