From daddbd984fe7a737ea3e949bc56390028aa94a1b Mon Sep 17 00:00:00 2001 From: Kateryna Stetsenko Date: Fri, 13 Dec 2024 22:05:48 -0800 Subject: [PATCH] [WV-861]Refactored pagination section for consistency: - Wrapped pagination links in a form with class pagination-form. - Added onclick=displayLoadingBanner to pagination links to show the loading banner during navigation. Refactored pagination section for consistency: - Wrapped pagination links in a `
` with class `pagination-form`. - Added `onclick="displayLoadingBanner()"` to pagination links to show the loading banner during navigation. --- templates/politician/politician_list.html | 33 ++++++++++++----------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/templates/politician/politician_list.html b/templates/politician/politician_list.html index f29f3567e..d3e9e2d51 100644 --- a/templates/politician/politician_list.html +++ b/templates/politician/politician_list.html @@ -75,6 +75,19 @@

Politicians

{% endif %} + + +
+ {% if previous_page_url %} + Previous page | + {% endif %} + Page {{ current_page_number|add:1 }} + {% if next_page_url %} + | Next page + {% endif %} +
+
+    - -{% if not hide_pagination %} - - {% if previous_page_url %} - Previous page | - {% endif %} - Page {{ current_page_number|add:1 }} - {% if next_page_url %} - | Next page - {% endif %} - -{% endif %} {% if politician_list %} @@ -260,15 +261,15 @@

Politicians

{% endfor %}
- + {% if not hide_pagination %} {% if previous_page_url %} - Previous page | + Previous page | {% endif %} Page {{ current_page_number|add:1 }} {% if next_page_url %} - | Next page + | Next page {% endif %} {% endif %} @@ -288,7 +289,7 @@

Politicians

function clearSearch() { displayLoadingBanner(); - $('#politician_search_id').value = ''; + $('#politician_search_id').val(''); $('form[name="state_code_form"]').submit(); }