{# options: propagate: include the "apply to subpages" checkbox noWorkflow: don't present the "can publish" option even if workflow is on for the project as a whole which: if present, an array which may contain "view" and "edit". If not present, both types of permissions are presented #} {% include "formMacros.html" %} {% macro permissionsEditor(options) %} {% set selectiveOptions = { propagate: options.propagate } %} {% if workflow and not options.noWorkflow %} {% set selectiveOptions = { propagate: options.propagate, extras: [ { name: 'publish', type: 'boolean', label: 'Can publish' } ] } %} {% endif %} {% if (not options.which) or aposContains(options.which, 'view') %} {# Toggles open apos-view-permissions #}
{% endif %} {% if (not options.which) or aposContains(options.which, 'edit') %} {# This outer div is for hiding the entirety of edit permissions via JS. -Tom #}