mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
adding twig extensions to select how many items per page
* twig anchor: {{ chill_items_per_page(pagination) }} * select field changed with javascript event listener
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
<nav class="filter-actions border border-secondary my-4 p-3">
|
||||
filter nav
|
||||
{{ dump() }}
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
@@ -23,7 +24,7 @@
|
||||
<div class="col-md-10 col-xxl">
|
||||
|
||||
<label class="counter">
|
||||
<span>xxx</span> {{ 'third parties'|trans }}
|
||||
<span>{{ pagination.totalItems }}</span> {{ 'third parties'|trans }}
|
||||
</label>
|
||||
|
||||
<table class="table table-striped table-hover align-middle">
|
||||
@@ -82,11 +83,7 @@
|
||||
|
||||
<ul class="record_actions sticky-form-buttons">
|
||||
<li class="cancel">
|
||||
<select class="form-select" aria-label="itemsPerPage">
|
||||
<option value="20">20 / page</option>
|
||||
<option value="50">50 / page</option>
|
||||
<option value="100">100 / page</option>
|
||||
</select>
|
||||
{{ chill_items_per_page(pagination) }}
|
||||
</li>
|
||||
{% if is_granted('CHILL_3PARTY_3PARTY_CREATE') %}
|
||||
<li>
|
||||
|
Reference in New Issue
Block a user