| author | cavaliet |
| Fri, 26 Sep 2014 12:55:35 +0200 | |
| changeset 342 | a0fa17c48236 |
| parent 331 | 306b95944074 |
| child 343 | 12b6fc19d78f |
| permissions | -rw-r--r-- |
| 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 renkans_actif %}actif{% endblock %} |
|
16 |
||
17 |
{% block main_content %} |
|
18 |
<h2>Liste des renkans publiques</h2> |
|
|
342
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
19 |
<p class="inline">{% if page.has_previous %}<a href="?page={{ page.previous_page_number }}&sort={{ sort_param }}&order={{ order_param }}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}" >{% trans 'Previous' %}</a>{% endif %} |
|
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
20 |
{% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}<a href="?page={{ page.next_page_number }}&sort={{ sort_param }}&order={{ order_param }}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}">{% trans 'Next' %}</a>{% endif %}</p> |
|
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
21 |
<form class="inline"><p>{% if page.has_previous or page.has_next %} - {% endif %}{% trans 'Filter' %} : <input type="text" name="filter" value="{{ filter }}"/></p></form> |
| 301 | 22 |
<table id="rk-table"> |
23 |
<thead> |
|
| 331 | 24 |
<tr class="border_bottom"> |
|
342
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
25 |
<th><a class="" href="?sort=title&order={% if sort_param == 'title' %}{{ opposite }}{% else %}asc{% endif %}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}">{% trans 'Title' %}</a> |
| 331 | 26 |
{% if sort_param == 'title' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th> |
|
342
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
27 |
<th><a href="?sort=date&order={% if sort_param == 'date' %}{{ opposite }}{% else %}desc{% endif %}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}">{% trans 'Modification date' %}</a> |
| 331 | 28 |
{% if sort_param == 'date' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th> |
29 |
<th>Preview</th><th>Actions</th></tr> |
|
| 301 | 30 |
</thead> |
31 |
<tbody> |
|
| 331 | 32 |
{% for hr in page.object_list %} |
| 301 | 33 |
{% with hr.renkan as r %} |
34 |
<tr class="border_bottom"> |
|
| 331 | 35 |
<td>{{ r.title }}</td> |
| 301 | 36 |
<td>{{ r.modification_date|date:"Y-m-d H:i" }}</td> |
37 |
<td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td> |
|
38 |
<td> |
|
39 |
<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> |
|
40 |
<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> |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
{% endwith %} |
|
44 |
{% endfor %} |
|
45 |
</tbody> |
|
46 |
</table> |
|
|
342
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
47 |
<p>{% if page.has_previous %}<a href="?page={{ page.previous_page_number }}&sort={{ sort_param }}&order={{ order_param }}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}" >{% trans 'Previous' %}</a>{% endif %} |
|
a0fa17c48236
title filter on renkan lists (personal, public and admin).
cavaliet
parents:
331
diff
changeset
|
48 |
{% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}<a href="?page={{ page.next_page_number }}&sort={{ sort_param }}&order={{ order_param }}{% if filter|length > 0 %}&filter={{ filter }}{% endif %}">{% trans 'Next' %}</a>{% endif %}</p> |
| 301 | 49 |
{% endblock %} |