Added the navigation links for pagination.

This commit is contained in:
2020-07-07 22:18:40 +08:00
parent 3bce775729
commit 19ac9d3200
4 changed files with 192 additions and 11 deletions

View File

@ -34,6 +34,8 @@ First written: 2020/7/1
<p>{{ request.resolver_match.app_name }}</p>
{% if records %}
{% include "mia_core/pagination.html" %}
{# The table for large screens #}
<table class="table table-striped table-hover d-none d-md-table general-journal-table">
<thead>

View File

@ -201,5 +201,5 @@ ORDER BY
self.kwargs["subject_code"] + "%",
self.kwargs["subject_code"] + "%"])
self.pagination = Pagination(
records, self.page_no, self.page_size, True)
self.request, records, self.page_no, self.page_size, True)
return self.pagination.records