<%inherit file="//layout/admin_lite_dialog.html"/> <%namespace name="lib" file="//lib.html" /> <%namespace name="formset" file="//formset.html" /> <%def name="title()">${_('Delete license')} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), ['manager','system','licensing']], [_('Delete 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 edit this license:')} ${controller_exception | h} % else: <%lib:render_exception e="${controller_exception}" /> % endif
% endif % if was_deleted:
${_('Delete successful')}

${_('%s has been deleted.') % h(license.label)}

% else:

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

${_('This license has a volume of %(quota)s and expires on %(expires)s.') % dict(quota=h(i18n.format_bytes(license.quota_bytes)), expires=h(i18n.format_date(license.expiration_time)))}

% 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