|
6 | 6 | <p class="rz-filters-bar__description">{{ filters.description }}</p> |
7 | 7 | {% endif %} |
8 | 8 |
|
9 | | - <form method="get" class="rz-filters-bar__group"> |
10 | | - {% if display_layout_fields %} |
11 | | - {% set value = filters.layout ?? app.request.query.get('layout') %} |
12 | | - {{ rz_filters_bar.layout_fields(value) }} |
13 | | - {% endif %} |
| 9 | + {% if with_filter_form is not same as(false) %} |
| 10 | + <form method="get" class="rz-filters-bar__group"> |
| 11 | + {% if display_layout_fields %} |
| 12 | + {% set value = filters.layout ?? app.request.query.get('layout') %} |
| 13 | + {{ rz_filters_bar.layout_fields(value) }} |
| 14 | + {% endif %} |
14 | 15 |
|
15 | | - <input |
16 | | - class="rz-input" |
17 | | - id="uk-form-filter-input-search" |
18 | | - type="search" |
19 | | - name="search" |
20 | | - placeholder="{% trans %}search{% endtrans %}" |
21 | | - value="{{ filters.search }}" |
22 | | - /> |
23 | | - {% block before_submit %}{% endblock %} |
24 | | - {{ |
25 | | - rz_button.root({ |
26 | | - attributes: { |
27 | | - type: 'submit', |
28 | | - }, |
29 | | - emphasis: 'secondary', |
30 | | - label: 'submit', |
31 | | - icon: 'rz-icon-ri--search-line' |
32 | | - }) |
33 | | - }} |
34 | | - {% if display_select_all_button %} |
35 | | - {{ |
36 | | - rz_button.root({ |
37 | | - attributes: { |
38 | | - type: 'button', |
39 | | - 'aria-selected': 'false', |
40 | | - 'data-bulk-select-all-button': '', |
41 | | - 'selected-class': 'rz-button--selected', |
42 | | - }, |
43 | | - emphasis: 'secondary', |
44 | | - label: 'select.all', |
45 | | - icon: 'rz-icon-ri--checkbox-line' |
46 | | - }) |
47 | | - }} |
48 | | - {% endif %} |
49 | | - </form> |
| 16 | + <input |
| 17 | + class="rz-input" |
| 18 | + id="uk-form-filter-input-search" |
| 19 | + type="search" |
| 20 | + name="search" |
| 21 | + placeholder="{% trans %}search{% endtrans %}" |
| 22 | + value="{{ filters.search }}" |
| 23 | + /> |
| 24 | + {% block before_submit %}{% endblock %} |
| 25 | + {{ |
| 26 | + rz_button.root({ |
| 27 | + attributes: { |
| 28 | + type: 'submit', |
| 29 | + }, |
| 30 | + emphasis: 'secondary', |
| 31 | + label: 'submit', |
| 32 | + icon: 'rz-icon-ri--search-line' |
| 33 | + }) |
| 34 | + }} |
| 35 | + {% if display_select_all_button %} |
| 36 | + {{ |
| 37 | + rz_button.root({ |
| 38 | + attributes: { |
| 39 | + type: 'button', |
| 40 | + 'aria-selected': 'false', |
| 41 | + 'data-bulk-select-all-button': '', |
| 42 | + 'selected-class': 'rz-button--selected', |
| 43 | + }, |
| 44 | + emphasis: 'secondary', |
| 45 | + label: 'select.all', |
| 46 | + icon: 'rz-icon-ri--checkbox-line' |
| 47 | + }) |
| 48 | + }} |
| 49 | + {% endif %} |
| 50 | + </form> |
| 51 | + {% endif %} |
50 | 52 |
|
51 | 53 | {% if filters.itemCount > filters.itemPerPage %} |
52 | | - <div class="rz-filters-bar__group"> |
| 54 | + <div class="rz-filters-bar__group rz-filters-bar__group--right"> |
53 | 55 | {{ rz_filters_bar.pagination(filters) }} |
54 | 56 |
|
55 | 57 | {% if filters.itemPerPage and filters.itemCount > 10 %} |
|
0 commit comments