{% load i18n wagtailadmin_tags %} {% trans "Object permissions" as heading %} {% panel id="object-permissions" heading=heading %}
{% trans "Object permissions" %} {% if extra_perms_exist.publish %} {% endif %} {% if extra_perms_exist.lock %} {% endif %} {% if extra_perms_exist.unlock %} {% endif %} {% if extra_perms_exist.custom %} {% endif %} {% if extra_perms_exist.publish %} {% endif %} {% if extra_perms_exist.lock %} {% endif %} {% if extra_perms_exist.unlock %} {% endif %} {% if extra_perms_exist.custom %} {% endif %} {% for content_perms_dict in object_perms %} {% if extra_perms_exist.publish %} {% endif %} {% if extra_perms_exist.lock %} {% endif %} {% if extra_perms_exist.unlock %} {% endif %} {% if extra_perms_exist.custom %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Add" %} {% trans "Change" %} {% trans "Delete" %}{% trans "Publish" %}{% trans "Lock" %}{% trans "Unlock" %}{% trans "Custom permissions" %}

{{ content_perms_dict.object|capfirst }}

{% if content_perms_dict.add %} {{ content_perms_dict.add.checkbox.tag }} {% endif %} {% if content_perms_dict.change %} {{ content_perms_dict.change.checkbox.tag }} {% endif %} {% if content_perms_dict.delete %} {{ content_perms_dict.delete.checkbox.tag }} {% endif %} {% if content_perms_dict.publish %} {{ content_perms_dict.publish.checkbox.tag }} {% endif %} {% if content_perms_dict.lock %} {{ content_perms_dict.lock.checkbox.tag }} {% endif %} {% if content_perms_dict.unlock %} {{ content_perms_dict.unlock.checkbox.tag }} {% endif %} {% if content_perms_dict.custom %}
{% trans "Custom permissions" %} {% for custom_perm in content_perms_dict.custom %} {% include "wagtailadmin/shared/forms/single_checkbox.html" with name="permissions" value=custom_perm.perm.id checked=custom_perm.selected text=custom_perm.name %} {% endfor %}
{% endif %}
{% endpanel %} {% trans "Other permissions" as heading %} {% panel id="other-permissions" heading=heading %}
{% trans "Other permissions" %} {% for perm_tuple in other_perms %} {% endfor %}
{% trans "Name" %}
{{ perm_tuple.1.tag }}
{% endpanel %}