Blame view

paginer/templates/paginated_list_rows.html 720 Bytes
janek37 authored
1
2
3
{% load i18n pagination_tags get %}

{% if page_nr %}
janek37 authored
4
    {% autopaginate id page_nr ajax %}
janek37 authored
5
{% else %}
janek37 authored
6
    {% autopaginate id %}
janek37 authored
7
8
9
{% endif %}

{% with paginer|get:id as paginer_obj %}
janek37 authored
10
11
12
    {% paginate id %}
    {% for row in paginer_obj.list %}
        {% include paginer_obj.template %}
janek37 authored
13
    {% endfor %}
janek37 authored
14
15
16
17
18
19
20
21
22
23
24
    {% if not paginer_obj.list %}
        {% trans "Brak pozycji do wyƛwietlenia" %}
    {% else %}
        {% for action in paginer_obj.group_actions %}
            <button id="{{ id }}-{{ action }}"
                    class="group-action {{ action }}">
                {{ paginer_obj.group_action_names|get:action }}
            </button>
        {% endfor %}
    {% endif %}
    {% paginate id %}
janek37 authored
25
{% endwith %}