<%inherit file="//layout/admin_lite_dialog.html"/> <%namespace name="lib" file="//lib.html" /> <%namespace name="formset" file="//formset.html" /> <%def name="title()">${_('Add pool allocation')} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), ['manager','system','licensing']], [_('Manage license pool'), None] ] %> ## ## contents ## % if controller_exception:
% if isinstance(controller_exception, splunk.ResourceNotFound): ${_('Could not find the stack:')} ${controller_exception | h} % elif controller_exception == splunk.AuthorizationFailed: ${_('You do not have permission to edit this stack:')} ${controller_exception | h} % else: <%lib:render_exception e="${controller_exception}" /> % endif
% endif % if is_success: % if action == 'add':
${_('Create successful')}

${_('The license pool %s has been successfully created.') % h(pool_object.name)}

% else:
${_('Update successful')}

${_('The license pool %s has been successfully updated.') % h(pool_object.name)}

% endif % else:

% if action == 'add': ${_('Create new license pool')} % else: ${_('Edit license pool:')} ${pool_object.name | h} % endif

% if action == 'add': % endif
${_('Stack')}${stack_label | h}
${formset.textbox(name="name",id="poolName", model=pool_object)}
${formset.textarea(name="description",id="desc", model=pool_object)}
${_('Allocation')} ${_('What is the maximum daily volume this pool may consume?')}

${formset.radioset(name="quota_mode", value=pool_quota_mode, options=[['all',_('The license maximum')]])} (${i18n.format_bytes(stack_quota_bytes, output_units='MB', mantissa=0) | h})

${formset.radioset(name="quota_mode", value=pool_quota_mode, options=[['explicit',_('A specific amount')]], id_offset=10)}


${_('Indexers')} ${_('Which indexers are eligible to draw from this pool?')}

${formset.radioset(name="slave_mode", value=slave_mode, options=[['catchall',_('Any indexer that connects')]], disabled=(not can_be_catch_all))}

${formset.radioset(name="slave_mode", value=slave_mode, options=[['explicit',_('Specific indexers')]], id_offset=10)}

% endif ## ## buttons ## <%def name="gutter()">
% if is_success: ${formset.button(_('OK'), is_primary=True, href=return_to)} % else: ${formset.button(_('Cancel'), href=return_to)} ${formset.button(_('Submit'), is_primary=True, is_submit=True)} % endif