Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Default theme implementation to display a Field UI table.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - attributes: HTML attributes to apply to the <table> tag.
|
Chris@0
|
8 * - caption: A localized string for the <caption> tag.
|
Chris@0
|
9 * - colgroups: Column groups. Each group contains the following properties:
|
Chris@0
|
10 * - attributes: HTML attributes to apply to the <col> tag.
|
Chris@0
|
11 * Note: Drupal currently supports only one table header row, see
|
Chris@0
|
12 * https://www.drupal.org/node/893530 and
|
Chris@0
|
13 * http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_table/7#comment-5109.
|
Chris@0
|
14 * - header: Table header cells. Each cell contains the following properties:
|
Chris@0
|
15 * - tag: The HTML tag name to use; either TH or TD.
|
Chris@0
|
16 * - attributes: HTML attributes to apply to the tag.
|
Chris@0
|
17 * - content: A localized string for the title of the column.
|
Chris@0
|
18 * - field: Field name (required for column sorting).
|
Chris@0
|
19 * - sort: Default sort order for this column ("asc" or "desc").
|
Chris@0
|
20 * - sticky: A flag indicating whether to use a "sticky" table header.
|
Chris@0
|
21 * - rows: Table rows. Each row contains the following properties:
|
Chris@0
|
22 * - attributes: HTML attributes to apply to the <tr> tag.
|
Chris@0
|
23 * - data: Table cells.
|
Chris@0
|
24 * - no_striping: A flag indicating that the row should receive no
|
Chris@0
|
25 * 'even / odd' styling. Defaults to FALSE.
|
Chris@0
|
26 * - cells: Table cells of the row. Each cell contains the following keys:
|
Chris@0
|
27 * - tag: The HTML tag name to use; either 'th' or 'td'.
|
Chris@0
|
28 * - attributes: Any HTML attributes, such as "colspan", to apply to the
|
Chris@0
|
29 * table cell.
|
Chris@0
|
30 * - content: The string to display in the table cell.
|
Chris@0
|
31 * - active_table_sort: A boolean indicating whether the cell is the active
|
Chris@0
|
32 table sort.
|
Chris@0
|
33 * - footer: Table footer rows, in the same format as the rows variable.
|
Chris@0
|
34 * - empty: The message to display in an extra row if table does not have
|
Chris@0
|
35 * any rows.
|
Chris@0
|
36 * - no_striping: A boolean indicating that the row should receive no striping.
|
Chris@0
|
37 * - header_columns: The number of columns in the header.
|
Chris@0
|
38 *
|
Chris@0
|
39 * @see template_preprocess_field_ui_table()
|
Chris@0
|
40 *
|
Chris@0
|
41 * @ingroup themeable
|
Chris@0
|
42 */
|
Chris@0
|
43 #}
|
Chris@0
|
44 {# Add Ajax wrapper. #}
|
Chris@0
|
45 <div id="field-display-overview-wrapper">
|
Chris@0
|
46 {% include 'table.html.twig' %}
|
Chris@0
|
47 </div>
|