<%!
    title = 'System settings'
%>
<%namespace name="lib" file="//lib.html" import="*"/>
<%inherit file="//layout/admin.html" />
<%namespace name="helpers" file="_helpers.html"/>
<%
import splunk
from splunk.appserver.mrsparkle.lib.msg_pool import MsgPoolMgr, UI_MSG_POOL
from splunk.appserver.mrsparkle.lib import util, i18n

msg_obj = MsgPoolMgr.get_poolmgr_instance()[UI_MSG_POOL].pop(msgid)
%>
% if msg_obj:
    <%helpers:message content="${msg_obj.text}" level="${msg_obj.severity}"/>
% endif
<div class="dataInputsWrapper">
    <div class="dataInputsDesc">${_('Manage system settings including ports, host name, index path, email server, and system logging.')}</div>

    <table class="splTable">
            <tr>
                <th>${_('')}</th>
                <th>${_('')}</th>
            </tr>
% if showGeneralSettings:
            <tr>
                <td class="input_name"><a href="${make_url(['manager', namespace, 'server', 'settings', 'settings'], _qs=dict(action='edit'))}">${_('General settings')}</a></td>
                <td></td>
            </tr>
            <tr>
                <td class="input_name"><a href="${make_url(['manager', namespace, 'login_page_settings'])}">${_('Login background')}</a></td>
                <td></td>
            </tr>
% endif
% if showEmail:
            <tr>
                <td class="input_name"><a href="${make_url(['manager', namespace, 'admin', 'alert_actions', 'email'], _qs=dict(action='edit'))}">${_('Email settings')}</a></td>
                <td></td>
            </tr>
% endif
% if showLogger:
            <tr>
                <td class="input_name"><a href="${make_url(['manager', namespace, 'server', 'logger'])}">${_('Server logging')}</a></td>
                <td></td>
            </tr>
% endif
% if (not util.isLite()) and showDeploymentClient:
            <tr>
                <td class="input_name"><a href="${make_url(['manager', namespace, 'deployment', 'client'])}">${_('Deployment client')}</a></td>
                <td></td>
            </tr>
% endif
% if showSearchPrefs:
            <tr>
                <td class="input_name"><a href="${make_url(['manager', 'system', 'searchprefs'])}">${_('Search preferences')}</a></td>
                <td></td>
            <tr>
% endif
        </table>
</div>
