2015-08-17 17:00:26 -07:00
{ #
/**
* @file
* Default view template to display all the fields in a row.
*
* Available variables:
* - view: The view in use.
* - fields: A list of fields, each one contains:
* - content: The output of the field.
* - raw: The raw data for the field, if it exists. This is NOT output safe.
* - class: The safe class ID to use.
* - handler: The Views field handler controlling this field.
* - inline: Whether or not the field should be inline.
2015-09-04 13:20:09 -07:00
* - wrapper_element: An HTML element for a wrapper.
* - wrapper_attributes: List of attributes for wrapper element.
2015-08-17 17:00:26 -07:00
* - separator: An optional separator that may appear before a field.
* - label: The field's label text.
2015-09-04 13:20:09 -07:00
* - label_element: An HTML element for a label wrapper.
* - label_attributes: List of attributes for label wrapper.
2015-10-08 11:40:12 -07:00
* - label_suffix: Colon after the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
2015-09-04 13:20:09 -07:00
* - has_label_colon: A boolean indicating whether to display a colon after
* the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
2015-08-17 17:00:26 -07:00
* - row: The raw result from the query, with all data it fetched.
*
* @see template_preprocess_views_view_fields()
*
* @ingroup themeable
*/
#}
2015-09-04 13:20:09 -07:00
{% for field in fields -%}
2015-08-17 17:00:26 -07:00
{{ field .separator }}
2015-09-04 13:20:09 -07:00
{% - if field .wrapper_element -%}
< {{ field .wrapper_element }} {{ field .wrapper_attributes }} >
{% - endif %}
{% - if field .label -%}
{% - if field .label_element -%}
2015-10-08 11:40:12 -07:00
< {{ field .label_element }} {{ field .label_attributes }} > {{ field .label }} {{ field .label_suffix }} </ {{ field .label_element }} >
2015-09-04 13:20:09 -07:00
{% - else -%}
2015-10-08 11:40:12 -07:00
{{ field .label }} {{ field .label_suffix }}
2015-09-04 13:20:09 -07:00
{% - endif %}
{% - endif %}
{% - if field .element_type -%}
< {{ field .element_type }} {{ field .element_attributes }} > {{ field .content }} </ {{ field .element_type }} >
{% - else -%}
2015-08-17 17:00:26 -07:00
{{ field .content }}
2015-09-04 13:20:09 -07:00
{% - endif %}
{% - if field .wrapper_element -%}
</ {{ field .wrapper_element }} >
{% - endif %}
{% - endfor %}