update to htmx 1.9.2
This commit is contained in:
parent
06728a0985
commit
9ab9decb03
@ -3,8 +3,8 @@
|
|||||||
<title>Actix Admin</title>
|
<title>Actix Admin</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||||
<script src="https://unpkg.com/htmx.org@1.8.4"></script>
|
<script src="https://unpkg.com/htmx.org@1.9.2"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
|
@ -194,39 +194,41 @@
|
|||||||
"entities_per_page" : "{{ entities_per_page }}",
|
"entities_per_page" : "{{ entities_per_page }}",
|
||||||
"search" : "{{ search }}",
|
"search" : "{{ search }}",
|
||||||
"sort_by" : "{{ sort_by }}",
|
"sort_by" : "{{ sort_by }}",
|
||||||
"sort_order" : "{{ sort_order }}"
|
"sort_order" : "{{ sort_order }}",
|
||||||
|
"render_partial" : "true"
|
||||||
}' hx-indicator="#loading" class="pagination is-rounded is-centered" role="pagination" aria-label="pagination">
|
}' hx-indicator="#loading" class="pagination is-rounded is-centered" role="pagination" aria-label="pagination">
|
||||||
{% if page > 1 %}
|
{% if page > 1 %}
|
||||||
<a href="?&page={{ page - 1 }}" class="pagination-previous left-arrow-click"><i
|
<a href="/admin/{{ entity_name }}/list?&page={{ page - 1 }}" class="pagination-previous left-arrow-click"><i
|
||||||
class="fa-solid fa-arrow-left"></i>
|
class="fa-solid fa-arrow-left"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page < num_pages %} <a href="?page={{ page + 1 }}" class="pagination-next right-arrow-click"><i
|
{% if page < num_pages %}
|
||||||
|
<a href="/admin/{{ entity_name }}/list?page={{ page + 1 }}" class="pagination-next right-arrow-click"><i
|
||||||
class="fa-solid fa-arrow-right"></i>
|
class="fa-solid fa-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="pagination-list">
|
<ul class="pagination-list">
|
||||||
<li>
|
<li>
|
||||||
<a class="pagination-link {% if page == 1 %}is-current{% endif %}" href="?page={{ 1 }}"
|
<a class="pagination-link {% if page == 1 %}is-current{% endif %}" href="/admin/{{ entity_name }}/list?page={{ 1 }}"
|
||||||
aria-label="Goto page 1">1</a>
|
aria-label="Goto page 1">1</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="pagination-ellipsis">…</span>
|
<span class="pagination-ellipsis">…</span>
|
||||||
</li>
|
</li>
|
||||||
{% for i in range(start=min_show_page,end=max_show_page) %}
|
{% for i in range(start=min_show_page,end=max_show_page) %}
|
||||||
<li><a class="pagination-link {% if page == i+1 %}is-current{% endif %}"
|
<li><a class="pagination-link {% if page == i+1 %}is-current{% endif %}"
|
||||||
aria-label="Goto page {{ i + 1 }}" href="?page={{ i + 1 }}">{{
|
aria-label="Goto page {{ i + 1 }}" href="/admin/{{ entity_name }}/list?page={{ i + 1 }}">{{
|
||||||
i + 1 }}</a></li>
|
i + 1 }}</a></li>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
<li>
|
<li>
|
||||||
<span class="pagination-ellipsis">…</span>
|
<span class="pagination-ellipsis">…</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="?page={{ num_pages }}"
|
<a href="/admin/{{ entity_name }}/list?page={{ num_pages }}"
|
||||||
class="pagination-link is-rounded {% if page == num_pages %}is-current{% endif %}"
|
class="pagination-link is-rounded {% if page == num_pages %}is-current{% endif %}"
|
||||||
aria-label="Goto page {{ num_pages }}">{{ num_pages }} </a>
|
aria-label="Goto page {{ num_pages }}">{{ num_pages }} </a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user