{%- extends "apostrophe-modal:base.html" -%} {%- import "apostrophe-modal:macros.html" as modals -%} {%- import "piecesMacros.html" as pieces with context -%} {%- import 'apostrophe-ui:components/buttons.html' as buttons -%} {%- import 'apostrophe-schemas:macros.html' as schemas -%} {%- block modalClass -%} {{ (data.options.name + '-manager') | css }} apos-ui-modal-no-sidebar apos-manager {%- endblock -%} {%- block controls -%} {{ pieces.manageControls() }} {%- endblock -%} {%- block instructions -%} {{ __('You can select content to display by searching for the titles of individual %s, or tags.', __(data.options.pluralLabel | d(''))) }} {%- endblock -%} {%- block filters -%} {# ajax populates me #}
{%- endblock -%} {%- block label -%} {{ __('Manage %s', __(data.options.pluralLabel | d(''))) }} {%- endblock -%} {%- block body -%}
{# ajax populates me with either the grid view or the table view #}
{%- endblock -%} {%- block footer -%} {%- block batch -%}
{% for operation in data.options.batchOperations %} {{ buttons.danger(__('Batch %s', operation.buttonLabel or operation.label), { action: 'batch-operation', value: operation.name }) }} {% endfor %}
{% if apos.utils.filterNonempty(data.options.batchOperations, 'schema') %}
{% endif %} {% for operation in data.options.batchOperations %} {% if operation.schema %}
{% for field in operation.schema %} {{ apos.schemas.field(field) }} {% endfor %}
{% endif %} {% endfor %} {% if apos.utils.filterNonempty(data.options.batchOperations, 'schema') %}
{% endif %}
{%- endblock -%}
{%- endblock -%}