{% extends "package/resource_edit_base.html" %} {% import 'macros/form.html' as form %} {% set acl = c.acl_dict %} {% block primary_content_inner %} {% link_for _('Back to all resource acl'), controller='ckanext.resourceauthorizer.controller:ResourceAuthorizerController', action='resource_acl', dataset_id=dataset_id, resource_id=resource_id, class_='btn btn-default pull-right', icon='arrow-left' %}

{% block page_heading %}{{ _('Edit Resource Acl') if acl else _('Add Resource Acl') }}{% endblock %}

{% block form %}
{% if not acl %}
{{ _('If you wish to add an existing user, search for their username below.') }}
{{ _('or') }}
{{ _('If you wish to add an existing organization, search for their organization below.') }}
{% else %} {% if acl['auth_type'] == 'user' %}
{% else %}
{% endif %} {% endif %}
{% set format_attrs = {'data-module': 'autocomplete'} %} {{ form.select('permission', label=_('Permission'), options=c.permissions, selected=c.acl_permission, error='', attrs=format_attrs) }}
{% if acl %} {{ _('Delete') }} {% else %} {% endif %}
{% endblock %} {% endblock %} {% block secondary_content %} {{ super() }}

{{ _('What are permissions?') }}

{% trans %}

None: Cannot access the resource

Read: Can access the resource

{% endtrans %}
{% endblock %}