<%namespace name="lib" file="//lib.html" import="*"/> <%namespace name="helpers" file="//admin/_helpers.html"/> <%inherit file="//layout/admin.html" /> <% import cherrypy import splunk.util from splunk.appserver.mrsparkle.lib import util isFree = splunk.util.normalizeBoolean(cherrypy.config["is_free_license"]) isLite = util.isLite() %> % if error: <%helpers:message content="${error}" level="error"/> % endif % if info: <%helpers:message content="${info}" level="info"/> % endif
% if entity: <% sharing_option_values = [x[0] for x in sharing_options] %>
${csrf_hidden_input()} % if not isLite: % if sharing != 'system' and endpoint_base != 'apps/local' and len(sharing_options) > 1:
${_('%s%s should appear in') % (object_label[:1].upper(), object_label[1:]) | h}
% for i, sharing_option in enumerate(sharing_options):
% endfor
% endif % endif
% if endpoint_base == 'apps/local': ${_('App permissions')} % else: ${_('Permissions')} % if isFree:

${_('To enable this and other Enterprise features, learn more about licenses at Splunk.com or contact Splunk Sales directly.')}

% endif % endif % if isLite: <% sharing_lite = 'global' if sharing == 'app' else sharing %> % if sharing_lite != 'system' and endpoint_base != 'apps/local': % if len(sharing_options) > 1:
% for i, sharing_option in enumerate(sharing_options): % endfor
% elif len(sharing_options) > 0: % endif % endif % endif % if not isFree: % for role in roles: % if not isLite or role == 'admin' or role == 'user': % endif % endfor
${_('Roles')} ${_('Read')} ${_('Write')}
${_('Everyone')}
${role | h}
% endif
% if endpoint_base == 'apps/local':
${_('Apply selected role permissions to:')}
% for i, sharing_option in enumerate(sharing_options): % endfor
% endif
% if perms_modifiable: % endif
% else:

${_('Sorry, the permissions for this object are unavailable.')}

% endif