{# Shared by pieces and pages #} {% import 'apostrophe-ui:components/buttons.html' as buttons %} {%- macro operations(operations) -%}
{% if apos.utils.filterNonempty(operations, 'schema') %}
{% endif %} {% for operation in operations %} {% if operation.schema %}
{% for field in operation.schema %} {{ apos.schemas.field(field) }} {% endfor %}
{% endif %} {% endfor %} {% if apos.utils.filterNonempty(operations, 'schema') %}
{% endif %}
{% for operation in operations %} {{ buttons.danger(__ns('apostrophe', 'Batch %s', operation.buttonLabel or operation.label), { action: 'batch-operation', value: operation.name }) }} {% endfor %}
{%- endmacro -%}