|
1 |
| -{% macro filterText(params) %} |
2 |
| - <p> |
3 |
| - <label for="searchInput" class="form-label"><strong>{{ params.label }}</strong></label> |
4 |
| - <input |
5 |
| - id="searchInput" |
6 |
| - name="{{ app.request.attributes.get('_route') }}-searchInput" |
7 |
| - class="form-control {{ theme_form_control }} form-control-sm" |
8 |
| - type="text" |
9 |
| - autocomplete="off" |
10 |
| - > |
11 |
| - </p> |
12 |
| -{% endmacro %} |
13 |
| - |
14 |
| -{% macro filterCheckboxesBoolean(params) %} |
15 |
| - <p> |
16 |
| - <strong>{{ params.title }}</strong><br> |
17 |
| - {% for v in ['true', 'false'] %} |
18 |
| - <span class="form-check form-switch d-inline mr-2"> |
19 |
| - <input |
20 |
| - type="checkbox" |
21 |
| - name="{{ app.request.attributes.get('_route') }}-{{ params.prefix }}-{{ v }}" |
22 |
| - class="form-check-input searchCheckbox" |
23 |
| - id="{{ params.prefix }}-{{ v }}Switch" |
24 |
| - checked="checked" |
25 |
| - value="{{ params.prefix }}-{{ v }}" |
26 |
| - > |
27 |
| - <label class="form-check-label" for="{{ params.prefix }}-{{ v }}Switch"> |
28 |
| - {{ _self.badge({'title': ('boolean.' ~ v)|trans, 'context': v}) }} |
29 |
| - </label> |
30 |
| - </span> |
31 |
| - {% endfor %} |
32 |
| - </p> |
33 |
| -{% endmacro %} |
34 |
| - |
35 |
| -{% macro filterCheckboxes(params) %} |
36 |
| - <p> |
37 |
| - <strong>{{ params.title }}</strong><br> |
38 |
| - {% for v in params.choices %} |
39 |
| - <span class="form-check form-switch d-inline mr-2"> |
40 |
| - <input |
41 |
| - type="checkbox" |
42 |
| - name="{{ app.request.attributes.get('_route') }}-{{ params.prefix }}-{{ v }}" |
43 |
| - class="form-check-input searchCheckbox" |
44 |
| - id="{{ params.prefix }}-{{ v }}Switch" |
45 |
| - checked="checked" |
46 |
| - value="{{ params.prefix }}-{{ v }}" |
47 |
| - > |
48 |
| - <label class="form-check-label" for="{{ params.prefix }}-{{ v }}Switch"> |
49 |
| - {{ _self.badge({'title': v|trans, 'context': v}) }} |
50 |
| - </label> |
51 |
| - </span> |
52 |
| - {% endfor %} |
53 |
| - </p> |
54 |
| -{% endmacro %} |
55 |
| - |
56 | 1 | {% macro heading(params) %}
|
57 | 2 | {% if params.level is not defined %}
|
58 | 3 | {% set params = params|merge({'level': 1}) %}
|
|
0 commit comments