bootstrap_pagination: disable via comment

Wrap the is_pagination usage of bootstrap_pagination with comment/endcomment
to avoid incompatible module.

We will need to re-write the pagination code.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
Tim Orling 2023-08-30 12:03:15 -07:00
parent e86a2c2610
commit bd58fbe7df
10 changed files with 20 additions and 0 deletions

View File

@ -90,10 +90,12 @@
<input type="submit" class="btn btn-default" name="add_all" value="Add all"></input>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if searched %}

View File

@ -62,10 +62,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if search_keyword %}

View File

@ -287,10 +287,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if searched %}

View File

@ -65,10 +65,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if search_keyword %}

View File

@ -60,10 +60,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}

View File

@ -105,10 +105,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
<p>No matching layers in database.</p>

View File

@ -64,10 +64,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if search_keyword %}

View File

@ -90,10 +90,12 @@
</table>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
{% if search_keyword %}

View File

@ -69,10 +69,12 @@
</div>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% else %}
<p>No unpublished layers to review.</p>

View File

@ -54,10 +54,12 @@
</div>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% endautoescape %}