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 class="ui pagination menu">
|
||||
{% 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 %}
|
||||
<a class="active item">Page {{ page.number }} of {{ page.paginator.num_pages }}</a>
|
||||
{% 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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user