mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* fix for services visibility if no service available or not enabled in config * availability map option to switch to old view * updates as guided by @laf
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
$no_refresh = true;
|
|
|
|
$config_groups = get_config_by_group('webui');
|
|
|
|
$search_conf = array(
|
|
array('name' => 'webui.global_search_result_limit',
|
|
'descr' => 'Set the max search result limit',
|
|
'type' => 'text',
|
|
),
|
|
);
|
|
|
|
$graph_conf = array(
|
|
array('name' => 'webui.min_graph_height',
|
|
'descr' => 'Set the minimum graph height',
|
|
'type' => 'text',
|
|
),
|
|
);
|
|
|
|
$availability_map_conf = array(
|
|
array('name' => 'webui.old_availability_map',
|
|
'descr' => 'Availability map old view',
|
|
'type' => 'checkbox',
|
|
),
|
|
);
|
|
|
|
echo '
|
|
<div class="panel-group" id="accordion">
|
|
<form class="form-horizontal" role="form" action="" method="post">
|
|
';
|
|
|
|
echo generate_dynamic_config_panel('Graph settings', $config_groups, $graph_conf);
|
|
echo generate_dynamic_config_panel('Search settings', $config_groups, $search_conf);
|
|
echo generate_dynamic_config_panel('Availability map settings', $config_groups, $availability_map_conf);
|
|
|
|
echo '
|
|
</form>
|
|
</div>
|
|
';
|