From 55ea45dc2a967e5a68c9c516c8bcbb8d8471af70 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 9 Feb 2024 10:07:01 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Pagination for document request view --- employee/templates/documents/requests.html | 158 ++++++++++++++++++++- 1 file changed, 154 insertions(+), 4 deletions(-) diff --git a/employee/templates/documents/requests.html b/employee/templates/documents/requests.html index 9a3a9c833..68eaaf3cb 100644 --- a/employee/templates/documents/requests.html +++ b/employee/templates/documents/requests.html @@ -79,8 +79,7 @@ {% if documents %}
- {% dynamic_regroup documents by document_request_id as document_grouper %} - {% for document_list in document_grouper %} + {% for document_list in documents reversed %}
+
+ + {% trans "Page" %} {{ document_list.list.number }} + {%trans "of" %} {{document_list.list.paginator.num_pages }}. + + +
{% endfor %} + +
+ + {% trans "Page" %} {{ documents.number }} {% trans "of" %} + {{ documents.paginator.num_pages }}. + + +
{% else %}