UNPKG

apostrophe

Version:

The Apostrophe Content Management System.

12 lines (11 loc) 674 B
{%- import "apostrophe-ui:components/fields.html" as fields -%} <tr> {# Output a th for each column that has the list property. Also output #} {# markup for sorting when appropriate. -Tom #} <td>{{fields.checkbox('select-all')}}</td> {%- for column in data.columns -%} <th class="apos-manage-column apos-manage-{{ data.options.name | css }}-{{ column.name | css }}{% if column.sort %} apos-manage-column--sortable{% endif %}" {% if column.sort %}data-sort data-default-sort-direction="{{ column.defaultSortDirection or '1' }}" {% endif %}data-column-name="{{ column.name }}">{# #}{{ __ns('apostrophe', column.label) }}{# #}</th> {%- endfor -%} </tr>