{% extends "admin/change_form.html" %} {% load i18n adminmedia customize_admin_modify related_admin_tags admin_tags %} {% block object-tools %} {% object_tools parent_model_admin "change" "../" parent_object %} {% endblock %} {% block form_top %} {{ block.super }} {% endblock %} {% block extrahead %} {{ block.super }} {{ prr_form.media}} {% endblock %} {% block content-main %}

{% if content %} {% trans "Update the permissions for each role for the content: " %}'{{ content }}' {% else %} {% trans "Update the permissions for each role: " %} {% endif %}

{% smart_relations_object_tool %}
{% if content %}
{% trans "Should this content adquire global permissions?" %}
{% endif %}
{% for role in roles %} {% endfor %} {% for perm, roles in role_permissions.items %} {% for role, checked in roles %} {% if enable_edit %} {% else %} {% endif %} {% endfor %} {% endfor %}
{% trans "Permissions"%}{{ role }}
{{ perm }}{% if checked %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}
{% if enable_edit %} {% customize_submit_row "roles_" %} {% endif %}
{% if content %}

{% trans "User and groups local roles" %}

{% trans "Create local roles for user or group for the content: " %}'{{ content }}'

{% trans "Autocomplete the user or autocomplete the group and select a role" %}

{{ prr_form }}
{% if user_roles %}
{% for role in roles %} {% ifequal role.slug anonymous_role_slug %} {% else %} {% endifequal %} {% endfor %} {% for user, roles in user_roles.items %} {% for role, checked in roles %} {% ifequal role.slug anonymous_role_slug %} {% else %} {% endifequal %} {% endfor %} {% endfor %}
{% trans "Users"%}{{ role }}{% trans "Remove all roles?" %}
{{ user }}
{% customize_submit_row "users_" %}
{% endif %} {% if group_roles %}
{% for role in roles %} {% ifequal role.slug anonymous_role_slug %} {% else %} {% endifequal %} {% endfor %} {% for group, roles in group_roles.items %} {% for role, checked in roles %} {% ifequal role.slug anonymous_role_slug %} {% else %} {% endifequal %} {% endfor %} {% endfor %}
{% trans "Groups"%}{{ role }}{% trans "Remove all roles?" %}
{{ group }}
{% customize_submit_row "groups_" %}
{% endif %} {% endif %}
{% endblock %}