Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
15
core/modules/views_ui/templates/views-ui-container.html.twig
Normal file
15
core/modules/views_ui/templates/views-ui-container.html.twig
Normal file
|
@ -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
|
||||
*/
|
||||
#}
|
||||
<div{{ attributes }}>{{ children }}</div>
|
|
@ -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',
|
||||
]
|
||||
%}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
{% if title -%}
|
||||
<h3 class="views-ui-display-tab-bucket__title">{{ title }}</h3>
|
||||
{%- endif %}
|
||||
{% if actions -%}
|
||||
{{ actions }}
|
||||
{%- endif %}
|
||||
{{ content }}
|
||||
</div>
|
|
@ -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',
|
||||
]
|
||||
%}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
{% if description -%}
|
||||
<span class="label">{{ description }}</span>
|
||||
{%- endif %}
|
||||
{% if settings_links %}
|
||||
{{ settings_links|safe_join('<span class="label"> | </span>') }}
|
||||
{% endif %}
|
||||
</div>
|
|
@ -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 %}
|
||||
<div class="views-left-40">
|
||||
{{ form.use_operator }}
|
||||
</div>
|
||||
{% 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'] %}
|
||||
<div class="views-right-60">
|
||||
{{ remaining_form }}
|
||||
</div>
|
||||
{% else %}
|
||||
{{ remaining_form }}
|
||||
{% endif %}
|
||||
|
||||
{{ form.more }}
|
|
@ -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 }}
|
||||
<div class="scroll" data-drupal-views-scroll>
|
||||
{% if grouping %}
|
||||
{{ form.filter_groups.operator }}
|
||||
{% else %}
|
||||
{{ form.filter_groups.groups.0 }}
|
||||
{% endif %}
|
||||
{{ ungroupable_table }}
|
||||
{{ table }}
|
||||
</div>
|
||||
{{ form|without('override', 'filter_groups', 'remove_groups', 'filters') }}
|
|
@ -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 }}
|
28
core/modules/views_ui/templates/views-ui-view-info.html.twig
Normal file
28
core/modules/views_ui/templates/views-ui-view-info.html.twig
Normal file
|
@ -0,0 +1,28 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for basic administrative info about a View.
|
||||
*
|
||||
* Available variables:
|
||||
* - displays: List of displays.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<h3 class="views-ui-view-title views-table-filter-text-source">{{ view.label }}</h3>
|
||||
<div class="views-ui-view-displays">
|
||||
{% if displays %}
|
||||
{% trans %}
|
||||
Display
|
||||
{% plural displays %}
|
||||
Displays
|
||||
{% endtrans %}:
|
||||
<em>{{ displays|safe_join(', ') }}</em>
|
||||
{% else %}
|
||||
{{ 'None'|t }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="views-ui-view-machine-name">
|
||||
{{ 'Machine name:'|t }}
|
||||
<span class="views-table-filter-text-source">{{ view.id }}</span>
|
||||
</div>
|
|
@ -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
|
||||
*/
|
||||
#}
|
||||
<h1 class="section-title">{{ title }}</h1>
|
||||
{% if links %}
|
||||
<div class="contextual">{{ links }}</div>
|
||||
{% endif %}
|
||||
<div class="preview-section">{{ content }}</div>
|
Reference in a new issue