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

${_('The new license was successfully added.')}

% if current_group != new_group: ${_('The license server has automatically switched the active license group from %(current)s to %(new)s.') % dict(current=h(current_group), new=h(new_group))} $(_('You must restart this server in order to use the new settings.')} % elif prompt_restart: ${_('You must restart Splunk for changes to take effect.')} % endif

% else:

${_('Add new license')}

% if len(license_table) == 0:

${_('There are currently no valid licenses installed. You must install at least one valid license in order to continue.')}

% endif

${_('Learn more about your license options at the licensing section on splunk.com.')}

${_('To install a license, upload a license file here (license files end with .license):')}

## this call will get inserted into the enclosing
tag <%def name="form_attrs()">enctype="multipart/form-data"

${_('Or,')} ${_('copy & paste the license XML directly...')}

% endif ## ## buttons ## <%def name="gutter()">
% if is_success: % if prompt_restart: <% qs = { 'auto_restart':'1', 'return_to': make_url(['manager', 'system', 'licensing']) } %> ${formset.button(_('Restart later'), href=return_to)} ${formset.button(_('Restart now'), is_primary=True, href=make_url(['manager','search','control'], _qs=qs) )} % else: ${formset.button(_('OK'), is_primary=True, href=return_to)} % endif % else: ${formset.button(_('Cancel'), href=return_to)} ${formset.button(_('Install'), is_primary=True, is_submit=True)} % endif