You are here

views-ui-build-group-filter-form.html.twig in Drupal 9

Theme override for Views UI build group filter form.

Available variables:

  • form: A render element representing the form. Contains the following:

    • form_description: The exposed filter's description.
    • expose_button: The button to toggle the expose filter form.
    • group_button: Toggle options between single and grouped filters.
    • label: A filter label input field.
    • description: A filter description field.
    • value: The filters available values.
    • optional: A checkbox to require this filter or not.
    • remember: A checkbox to remember selected filter value(s) (per user).
    • widget: Radio Buttons to select the filter widget.
    • add_group: A button to add another row to the table.
    • more: A details element for additional field exposed filter fields.
  • table: A rendered table element of the group filter form.

File

core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for Views UI build group filter form.
  5. *
  6. * Available variables:
  7. * - form: A render element representing the form. Contains the following:
  8. * - form_description: The exposed filter's description.
  9. * - expose_button: The button to toggle the expose filter form.
  10. * - group_button: Toggle options between single and grouped filters.
  11. * - label: A filter label input field.
  12. * - description: A filter description field.
  13. * - value: The filters available values.
  14. * - optional: A checkbox to require this filter or not.
  15. * - remember: A checkbox to remember selected filter value(s) (per user).
  16. * - widget: Radio Buttons to select the filter widget.
  17. * - add_group: A button to add another row to the table.
  18. * - more: A details element for additional field exposed filter fields.
  19. * - table: A rendered table element of the group filter form.
  20. *
  21. * @see template_preprocess_views_ui_build_group_filter_form()
  22. */
  23. #}
  24. {{ form.form_description }}
  25. {{ form.expose_button }}
  26. {{ form.group_button }}
  27. <div class="views-left-40">
  28. {{ form.optional }}
  29. {{ form.remember }}
  30. </div>
  31. <div class="views-right-60">
  32. {{ form.widget }}
  33. {{ form.label }}
  34. {{ form.description }}
  35. </div>
  36. {#
  37. Render the rest of the form elements excluding elements that are rendered
  38. elsewhere.
  39. #}
  40. {{ form|without(
  41. 'form_description',
  42. 'expose_button',
  43. 'group_button',
  44. 'optional',
  45. 'remember',
  46. 'widget',
  47. 'label',
  48. 'description',
  49. 'add_group',
  50. 'more'
  51. )
  52. }}
  53. {{ table }}
  54. {{ form.add_group }}
  55. {{ form.more }}