Fix pagination on budget list page
This commit is contained in:
parent
bd43db4e21
commit
d967a548a4
@ -103,11 +103,11 @@
|
|||||||
<div style="text-align:center;padding-top:1em">
|
<div style="text-align:center;padding-top:1em">
|
||||||
<div class="ui pagination menu">
|
<div class="ui pagination menu">
|
||||||
{% if page.has_previous() %}
|
{% if page.has_previous() %}
|
||||||
<a class="item" href="?page={{ page.previous_page_number() }}&state={{ request.GET.get('state', 'all') }}&cost_centre=request.GET.get('cost_centre', 'all')&year={{ request.GET.get('year', '') }}">‹ Prev</a>
|
<a class="item" href="?page={{ page.previous_page_number() }}&state={{ request.GET.get('state', 'all') }}&cost_centre={{ request.GET.get('cost_centre', 'all') }}&year={{ request.GET.get('year', '') }}">‹ Prev</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="active item">Page {{ page.number }} of {{ page.paginator.num_pages }}</a>
|
<a class="active item">Page {{ page.number }} of {{ page.paginator.num_pages }}</a>
|
||||||
{% if page.has_next() %}
|
{% if page.has_next() %}
|
||||||
<a class="item" href="?page={{ page.next_page_number() }}&state={{ request.GET.get('state', 'all') }}&cost_centre=request.GET.get('cost_centre', 'all')&year={{ request.GET.get('year', '') }}">Next ›</a>
|
<a class="item" href="?page={{ page.next_page_number() }}&state={{ request.GET.get('state', 'all') }}&cost_centre={{ request.GET.get('cost_centre', 'all') }}&year={{ request.GET.get('year', '') }}">Next ›</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user