diff --git a/core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig b/core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig index 9009d88..6d54340 100644 --- a/core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig +++ b/core/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig @@ -17,14 +17,7 @@ * @ingroup themeable */ #} -{% - set classes = [ - 'views-ui-display-tab-bucket', - name ? name|clean_class, - overridden ? 'overridden', - ] -%} - +
{% if title -%}

{{ title }}

{%- endif %} diff --git a/core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig b/core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig index c90e5c9..413be07 100644 --- a/core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig +++ b/core/modules/views_ui/templates/views-ui-display-tab-setting.html.twig @@ -18,20 +18,11 @@ * @ingroup themeable */ #} -{% - set classes = [ - 'views-display-setting', - 'clearfix', - 'views-ui-display-tab-setting', - defaulted ? 'defaulted', - overridden ? 'overridden', -] -%} - +
{% if description -%} - {{ description }} + {{ description }} {%- endif %} {% if settings_links %} - {{ settings_links|safe_join(' | ') }} + {{ settings_links|safe_join(' | ') }} {% endif %}
diff --git a/core/modules/views_ui/templates/views-ui-expose-filter-form.html.twig b/core/modules/views_ui/templates/views-ui-expose-filter-form.html.twig index dfc4775..3d14a27 100644 --- a/core/modules/views_ui/templates/views-ui-expose-filter-form.html.twig +++ b/core/modules/views_ui/templates/views-ui-expose-filter-form.html.twig @@ -30,7 +30,7 @@ {{ form.value }} {% if form.use_operator %} -
+
{{ form.use_operator }}
{% endif %} @@ -57,7 +57,7 @@ Only output the right column markup if there's a left column to begin with. #} {% if form.operator['#type'] %} -
+
{{ remaining_form }}
{% else %} diff --git a/core/modules/views_ui/templates/views-ui-rearrange-filter-form.html.twig b/core/modules/views_ui/templates/views-ui-rearrange-filter-form.html.twig index b003a89..5624a70 100644 --- a/core/modules/views_ui/templates/views-ui-rearrange-filter-form.html.twig +++ b/core/modules/views_ui/templates/views-ui-rearrange-filter-form.html.twig @@ -15,7 +15,7 @@ */ #} {{ form.override }} -
+
{% if grouping %} {{ form.filter_groups.operator }} {% else %} diff --git a/core/modules/views_ui/templates/views-ui-view-info.html.twig b/core/modules/views_ui/templates/views-ui-view-info.html.twig index a0f286c..8b1e989 100644 --- a/core/modules/views_ui/templates/views-ui-view-info.html.twig +++ b/core/modules/views_ui/templates/views-ui-view-info.html.twig @@ -12,5 +12,5 @@ * @ingroup themeable */ #} -

{{ title }}

-
{{ displays }}
+

{{ title }}

+
{{ displays }}
diff --git a/core/modules/views_ui/templates/views-ui-view-preview-section.html.twig b/core/modules/views_ui/templates/views-ui-view-preview-section.html.twig index cfc840f..9430063 100644 --- a/core/modules/views_ui/templates/views-ui-view-preview-section.html.twig +++ b/core/modules/views_ui/templates/views-ui-view-preview-section.html.twig @@ -13,8 +13,8 @@ * @ingroup themeable */ #} -

{{ title }}

+

{{ title }}

{% if links %} -
{{ links }}
+
{{ links }}
{% endif %} -
{{ content }}
+
{{ content }}
diff --git a/core/themes/classy/templates/views-ui-container.html.twig b/core/themes/classy/templates/views-ui-container.html.twig new file mode 100644 index 0000000..d45b158 --- /dev/null +++ b/core/themes/classy/templates/views-ui-container.html.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Default theme implementation for a generic views UI container/wrapper. + * + * Available variables: + * - attributes: HTML attributes to apply to the container element. + * - children: The remaining elements such as dropbuttons and tabs. + * + * @see template_preprocess_views_ui_container() + * + * @ingroup themeable + */ +#} +{{ children }}
diff --git a/core/themes/classy/templates/views-ui-display-tab-bucket.html.twig b/core/themes/classy/templates/views-ui-display-tab-bucket.html.twig new file mode 100644 index 0000000..9009d88 --- /dev/null +++ b/core/themes/classy/templates/views-ui-display-tab-bucket.html.twig @@ -0,0 +1,35 @@ +{# +/** + * @file + * Default theme implementation for each "box" on the display query edit screen. + * + * Available variables: + * - attributes: HTML attributes to apply to the container element. + * - actions: Action links such as "Add", "And/Or, Rearrange" for the content. + * - title: The title of the bucket, e.g. "Fields", "Filter Criteria", etc. + * - content: Content items such as fields or settings in this container. + * - name: The name of the bucket, e.g. "Fields", "Filter Criteria", etc. + * - overridden: A boolean indicating the setting has been overridden from the + * default. + * + * @see template_preprocess_views_ui_display_tab_bucket() + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'views-ui-display-tab-bucket', + name ? name|clean_class, + overridden ? 'overridden', + ] +%} + + {% if title -%} +

{{ title }}

+ {%- endif %} + {{ content }} + {% if actions -%} + {{ actions }} + {%- endif %} +
diff --git a/core/themes/classy/templates/views-ui-display-tab-setting.html.twig b/core/themes/classy/templates/views-ui-display-tab-setting.html.twig new file mode 100644 index 0000000..c90e5c9 --- /dev/null +++ b/core/themes/classy/templates/views-ui-display-tab-setting.html.twig @@ -0,0 +1,37 @@ +{# +/** + * @file + * Default theme implementation for Views UI display tab settings. + * + * Template for each row inside the "boxes" on the display query edit screen. + * + * Available variables: + * - attributes: HTML attributes such as class for the container. + * - description: The description or label for this setting. + * - settings_links: A list of links for this setting. + * - defaulted: A boolean indicating the setting is in its default state. + * - overridden: A boolean indicating the setting has been overridden from the + * default. + * + * @see template_preprocess_views_ui_display_tab_setting() + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'views-display-setting', + 'clearfix', + 'views-ui-display-tab-setting', + defaulted ? 'defaulted', + overridden ? 'overridden', +] +%} + + {% if description -%} + {{ description }} + {%- endif %} + {% if settings_links %} + {{ settings_links|safe_join(' | ') }} + {% endif %} +
diff --git a/core/themes/classy/templates/views-ui-expose-filter-form.html.twig b/core/themes/classy/templates/views-ui-expose-filter-form.html.twig new file mode 100644 index 0000000..dfc4775 --- /dev/null +++ b/core/themes/classy/templates/views-ui-expose-filter-form.html.twig @@ -0,0 +1,67 @@ +{# +/** + * @file + * Default theme implementation for exposed filter form. + * + * Available variables: + * - 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. + * - required: A checkbox to require this filter or not. + * - label: A filter label input field. + * - description: A filter description field. + * - operator: The operators for how the filters value should be treated. + * - #type: The operator type. + * - value: The filters available values. + * - use_operator: Checkbox to allow the user to expose the operator. + * - more: A details element for additional field exposed filter fields. + * + * @ingroup themeable + */ +#} +{{ form.form_description }} +{{ form.expose_button }} +{{ form.group_button }} +{{ form.required }} +{{ form.label }} +{{ form.description }} + +{{ form.operator }} +{{ form.value }} + +{% if form.use_operator %} +
+ {{ form.use_operator }} +
+{% endif %} + +{# + Collect a list of elements printed to exclude when printing the + remaining elements. +#} +{% set remaining_form = form|without( + 'form_description', + 'expose_button', + 'group_button', + 'required', + 'label', + 'description', + 'operator', + 'value', + 'use_operator', + 'more' + ) +%} + +{# + Only output the right column markup if there's a left column to begin with. +#} +{% if form.operator['#type'] %} +
+ {{ remaining_form }} +
+{% else %} + {{ remaining_form }} +{% endif %} + +{{ form.more }} diff --git a/core/themes/classy/templates/views-ui-rearrange-filter-form.html.twig b/core/themes/classy/templates/views-ui-rearrange-filter-form.html.twig new file mode 100644 index 0000000..b003a89 --- /dev/null +++ b/core/themes/classy/templates/views-ui-rearrange-filter-form.html.twig @@ -0,0 +1,27 @@ +{# +/** + * @file + * Default theme implementation for Views UI rearrange filter form. + * + * Available variables: + * - form: A render element representing the form. + * - grouping: A flag whether or not there is more than one group. + * - ungroupable_table: The ungroupable filter table. + * - table: The groupable filter table. + * + * @see template_preprocess_views_ui_rearrange_filter_form() + * + * @ingroup themeable + */ +#} +{{ form.override }} +
+ {% if grouping %} + {{ form.filter_groups.operator }} + {% else %} + {{ form.filter_groups.groups.0 }} + {% endif %} + {{ ungroupable_table }} + {{ table }} +
+{{ form|without('override', 'filter_groups', 'remove_groups', 'filters') }} diff --git a/core/themes/classy/templates/views-ui-style-plugin-table.html.twig b/core/themes/classy/templates/views-ui-style-plugin-table.html.twig new file mode 100644 index 0000000..27463f5 --- /dev/null +++ b/core/themes/classy/templates/views-ui-style-plugin-table.html.twig @@ -0,0 +1,18 @@ +{# +/** + * @file + * Default template for the settings of a table style views display. + * + * Available variables: + * - table: A table of options for each field in this display. + * - form: Any remaining form fields not included in the table. + * - description_markup: An overview for the settings of this display. + * + * @see template_preprocess_views_ui_style_plugin_table() + * + * @ingroup themeable + */ +#} +{{ form.description_markup }} +{{ table }} +{{ form }} diff --git a/core/themes/classy/templates/views-ui-view-info.html.twig b/core/themes/classy/templates/views-ui-view-info.html.twig new file mode 100644 index 0000000..a0f286c --- /dev/null +++ b/core/themes/classy/templates/views-ui-view-info.html.twig @@ -0,0 +1,16 @@ +{# +/** + * @file + * Default theme implementation for basic administrative info about a View. + * + * Available variables: + * - title: View title. + * - displays: List of displays. + * + * @see template_preprocess_views_ui_view_info() + * + * @ingroup themeable + */ +#} +

{{ title }}

+
{{ displays }}
diff --git a/core/themes/classy/templates/views-ui-view-preview-section.html.twig b/core/themes/classy/templates/views-ui-view-preview-section.html.twig new file mode 100644 index 0000000..cfc840f --- /dev/null +++ b/core/themes/classy/templates/views-ui-view-preview-section.html.twig @@ -0,0 +1,20 @@ +{# +/** + * @file + * Default theme implementation for a views UI preview section. + * + * Available variables: + * - title: The human readable section title. + * - links: A list of contextual links. + * - content: The content for this section preview. + * + * @see template_preprocess_views_ui_view_preview_section() + * + * @ingroup themeable + */ +#} +

{{ title }}

+{% if links %} +
{{ links }}
+{% endif %} +
{{ content }}