ORIENT/themes/modern2/partials/new/pagination.htm

51 lines
1.4 KiB
HTML
Raw Normal View History

2022-12-06 15:33:01 +00:00
[viewBag]
==
2025-01-27 12:52:14 +00:00
{% put styles %}
<style>
#pagination_input{
margin: 0;
}
#pagination_form{
display: contents;
}
</style>
{% endput %}
2022-12-06 15:33:01 +00:00
{% if items.total > items.perPage %}
<div class="video-main-bottom rubric-bottom">
<a href="{{items.previousPageUrl|default('#')}}{%if filter and items.previousPageUrl %}{{'&'~filter.0~'='~filter.1}}{% endif %}">
<button type="button" class="video-main-pagination">
<div>
<img src="{{'assets/new/icons/arrow-left-white.svg'|theme}}" alt="" />
</div>
</button>
</a>
<!-- <span>1/1000</span> -->
2025-01-27 12:52:14 +00:00
<form method="get" id="pagination_form">
2022-12-06 15:33:01 +00:00
<div class="heading__footer-input">
2025-01-27 12:52:14 +00:00
<input type="text" value="{{items.currentPage|default('1')}}" name="page" id="pagination_input">
2022-12-06 15:33:01 +00:00
{%if filter %}
<input type="hidden" name="{{filter.0}}" value="{{filter.1}}">
{% endif %}
{%if dateFilter %}
<input type="hidden" name="date" value="{{dateFilter}}">
{% endif %}
</div>
</form>
<a href="{{items.nextPageUrl|default('#')}}{%if filter and items.nextPageUrl %}{{'&'~filter.0~'='~filter.1}}{% endif %}">
<button type="button" class="video-main-pagination">
<div>
<img src="{{'assets/new/icons/arrow-right-white.svg'|theme}}" alt="" />
</div>
</button>
</a>
<span>{{(items.total/items.perPage)|round(0,'ceil')}} {{'paginate.from'|_}} </span>
</div>
{% endif %}