<%inherit file="//layout/admin_lite_dialog.html"/> <%namespace name="formset" file="//formset.html" /> <%namespace name="lib" file="//lib.html" /> <%def name="title()">${_('Delete pool')} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), ['manager','system','licensing']], [_('Delete pool'), None] ] %> ## ## render content ## % if controller_exception:
% if isinstance(controller_exception, splunk.ResourceNotFound): ${_('The license pool %s could not be deleted because it does not appear to exist on the server.') % h(pool_name)} ${_('Either the pool was just deleted or the name of the pool was mistyped.')} % elif controller_exception == splunk.AuthorizationFailed: ${_('You do not have permission to edit this pool:')} ${controller_exception | h} % else: <%lib:render_exception e="${controller_exception}" /> % endif
% elif was_deleted:
${_('Delete successful')}

${_('The %s pool has been deleted.') % h(pool.name)}

% else:

${_('Are you sure you want to delete the license pool:')} ${pool.name | h}?

${_('Once the pool is deleted, all of the indexers in the pool will lose their shared indexing volumes. Do you still want to delete this pool?')}

${_('Affected indexers:')}

% if len(slave_table) == 0:

${_('No associated indexers found.')}

% else: % endif % endif ## ## render gutter ## <%def name="gutter()">
% if controller_exception or was_deleted: ${formset.button(_('OK'), is_primary=True, href=return_to)} % else: ${formset.button(_('Cancel'), href=return_to)} ${formset.button(_('Delete'), is_primary=True, is_submit=True)} % endif