Backup of db before drupal security update
[yaffs-website] / web / core / modules / views_ui / templates / views-ui-expose-filter-form.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for exposed filter form.
5  *
6  * Available variables:
7  * - form_description: The exposed filter's description.
8  * - expose_button: The button to toggle the expose filter form.
9  * - group_button: Toggle options between single and grouped filters.
10  * - required: A checkbox to require this filter or not.
11  * - label: A filter label input field.
12  * - description: A filter description field.
13  * - operator: The operators for how the filters value should be treated.
14  *   - #type: The operator type.
15  * - value: The filters available values.
16  * - use_operator: Checkbox to allow the user to expose the operator.
17  * - more: A details element for additional field exposed filter fields.
18  *
19  * @ingroup themeable
20  */
21 #}
22 {{ form.form_description }}
23 {{ form.expose_button }}
24 {{ form.group_button }}
25 {{ form.required }}
26 {{ form.label }}
27 {{ form.description }}
28
29 {{ form.operator }}
30 {{ form.value }}
31
32 {% if form.use_operator %}
33   <div class="views-left-40">
34   {{ form.use_operator }}
35   </div>
36 {% endif %}
37
38 {#
39   Collect a list of elements printed to exclude when printing the
40   remaining elements.
41 #}
42 {% set remaining_form = form|without(
43   'form_description',
44   'expose_button',
45   'group_button',
46   'required',
47   'label',
48   'description',
49   'operator',
50   'value',
51   'use_operator',
52   'more'
53   )
54 %}
55
56 {#
57   Only output the right column markup if there's a left column to begin with.
58 #}
59 {% if form.operator['#type'] %}
60   <div class="views-right-60">
61   {{ remaining_form }}
62   </div>
63 {% else %}
64   {{ remaining_form }}
65 {% endif %}
66
67 {{ form.more }}