Revision b7c802a2 snf-astakos-app/astakos/im/templates/im/table_render.html
b/snf-astakos-app/astakos/im/templates/im/table_render.html | ||
---|---|---|
6 | 6 |
{% endif %} |
7 | 7 |
{% block table %} |
8 | 8 |
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}> |
9 |
{% if table.attrs.caption %}
|
|
10 |
<caption>{{ table.attrs.caption }}</caption>
|
|
9 |
{% if table.caption %} |
|
10 |
<caption>{{ table.caption }}</caption> |
|
11 | 11 |
{% endif %} |
12 | 12 |
{% nospaceless %} |
13 | 13 |
{% block table.thead %} |
... | ... | |
53 | 53 |
{% with table.page.paginator.count as total %} |
54 | 54 |
{% with table.page.object_list|length as count %} |
55 | 55 |
{% block pagination %} |
56 |
<div class="pagination clearfix"> |
|
57 |
<p class="next-prev"> |
|
58 |
{% if table.page.has_previous %} |
|
59 |
{% nospaceless %}{% block pagination.previous %}<a href="{% querystring table.prefixed_page_field=table.page.previous_page_number %}#{{ table.attrs.id }}"><{% trans "Previous" %}</a>{% endblock pagination.previous %}{% endnospaceless %} |
|
60 |
{% else %} |
|
61 |
<a href="" class="disabled">< {% trans "Previous" %}</a> |
|
62 |
{% endif %} |
|
63 |
|
|
64 |
{% if table.page.has_next %} |
|
65 |
{% nospaceless %}{% block pagination.next %}<a href="{% querystring table.prefixed_page_field=table.page.next_page_number %}#{{ table.attrs.id }}">{% trans "Next" %} ></a>{% endblock pagination.next %}{% endnospaceless %} |
|
66 |
{% else %} |
|
67 |
<a href="" class="disabled">{% trans "Next" %} ></a> |
|
68 |
{% endif %} |
|
69 |
|
|
70 |
</p> |
|
71 |
<span class="num"> |
|
72 |
{% if table.page.has_previous or table.page.has_next %} |
|
73 |
{% nospaceless %}{% block pagination.current %} {% blocktrans with table.page.number as current and table.paginator.num_pages as total %}Page {{ current }} of {{ total }}{% endblocktrans %} {% endblock pagination.current %}{% endnospaceless %} |
|
74 |
{% endif %} |
|
75 |
{% comment %} |
|
76 |
( {% nospaceless %}{% block pagination.cardinality %}{% if total != count %}{% blocktrans %}{{ count }} of {{ total }}{% endblocktrans %}{% else %}{{ total }}{% endif %} {% if total == 1 %}{{ table.data.verbose_name }}{% else %}{{ table.data.verbose_name_plural }}{% endif %}{% endblock pagination.cardinality %}{% endnospaceless %} ) |
|
77 |
{% endcomment %} |
|
78 |
|
|
79 |
|
|
80 |
</span> |
|
81 |
</div> |
|
82 |
|
|
83 |
|
|
56 | 84 |
<ul class="pagination"> |
85 |
{% comment %} |
|
57 | 86 |
{% if table.page.has_previous %} |
58 | 87 |
{% nospaceless %}{% block pagination.previous %}<li class="previous"><a href="{% querystring table.prefixed_page_field=table.page.previous_page_number %}#{{ table.attrs.id }}">{% trans "Previous" %}</a></li>{% endblock pagination.previous %}{% endnospaceless %} |
59 | 88 |
{% endif %} |
60 |
|
|
89 |
|
|
61 | 90 |
{% if table.page.has_previous or table.page.has_next %} |
62 | 91 |
{% nospaceless %}{% block pagination.current %}<li class="current">{% blocktrans with table.page.number as current and table.paginator.num_pages as total %}Page {{ current }} of {{ total }}{% endblocktrans %}</li>{% endblock pagination.current %}{% endnospaceless %} |
63 | 92 |
{% endif %} |
... | ... | |
65 | 94 |
{% if table.page.has_next %} |
66 | 95 |
{% nospaceless %}{% block pagination.next %}<li class="next"><a href="{% querystring table.prefixed_page_field=table.page.next_page_number %}#{{ table.attrs.id }}">{% trans "Next" %}</a></li>{% endblock pagination.next %}{% endnospaceless %} |
67 | 96 |
{% endif %} |
68 |
|
|
69 |
{% nospaceless %}{% block pagination.cardinality %}<li class="cardinality">{% if total != count %}{% blocktrans %}{{ count }} of {{ total }}{% endblocktrans %}{% else %}{{ total }}{% endif %} {% if total == 1 %}{{ table.data.verbose_name }}{% else %}{{ table.data.verbose_name_plural }}{% endif %}</li>{% endblock pagination.cardinality %}{% endnospaceless %} |
|
97 |
{% endcomment %} |
|
98 |
|
|
70 | 99 |
</ul> |
71 | 100 |
{% endblock pagination %} |
72 | 101 |
{% endwith %} |
Also available in: Unified diff