You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.3 KiB
33 lines
1.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Zen Pagination Templates-->
|
|
<!-- 1. `zen_pager` - A custom pagination bar with previous, numbered, and next links.-->
|
|
|
|
<template id="zen_pager" name="Zen pager">
|
|
<t t-if="pager['page_count'] > 1">
|
|
<div class="pagination1">
|
|
<a t-att-href="pager['page_previous']['url']" t-if="pager['page']['num'] != 1">
|
|
<i class="fa fa-chevron-left"/>
|
|
</a>
|
|
<t t-foreach="pager['pages']" t-as="page">
|
|
<a t-att-href="page['url']" t-raw="page['num']"/>
|
|
</t>
|
|
<a t-att-href="pager['page_next']['url']" t-if="pager['page']['num'] != pager['page_count']">
|
|
<i class="fa fa-chevron-right"/>
|
|
</a>
|
|
<div class="bar1"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<!-- `zen_pagination` - An inherited template from `website_sale.products` that replaces-->
|
|
<!-- the default pagination area with the custom `zen_pager-->
|
|
|
|
<template id="zen_pagination" name="Zen pagination" inherit_id="website_sale.products">
|
|
<xpath expr="//div[contains(@class, 'justify-content-center')]" position="replace">
|
|
<div class="justify-content-center">
|
|
<t t-call="theme_zen.zen_pager"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|