mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
UX console in progress... (Fixed filter form in policy modules)
This commit is contained in:
parent
55063a20dc
commit
cfce014ad3
pandora_console
@ -115,16 +115,18 @@ if (($policy_page) || (isset($agent))) {
|
||||
if ($show_creation) {
|
||||
// Create module/type combo
|
||||
echo '<form id="create_module_type" method="post" action="'.$url.'">';
|
||||
echo '<td class="datos" style="font-weight: bold;">';
|
||||
echo __('Show in hierachy mode');
|
||||
if ($checked == "true") {
|
||||
$checked = true;
|
||||
if (!$policy_page) {
|
||||
echo '<td class="datos" style="font-weight: bold;">';
|
||||
echo __('Show in hierachy mode');
|
||||
if ($checked == "true") {
|
||||
$checked = true;
|
||||
}
|
||||
else {
|
||||
$checked = false;
|
||||
}
|
||||
html_print_checkbox ('status_hierachy_mode', "", $checked, false, false, "onChange=change_mod_filter();");
|
||||
echo '</td>';
|
||||
}
|
||||
else {
|
||||
$checked = false;
|
||||
}
|
||||
html_print_checkbox ('status_hierachy_mode', "", $checked, false, false, "onChange=change_mod_filter();");
|
||||
echo '</td>';
|
||||
echo '<td class="datos" style="font-weight: bold;">';
|
||||
echo __("Type");
|
||||
html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' );
|
||||
|
@ -2535,6 +2535,7 @@ function recursive_modules_tree (&$new_modules, &$new_modules_child, $i, $child)
|
||||
foreach ($new_modules as $index => $module) {
|
||||
if ($module['id_agente_modulo'] == $child['parent_module_id']) {
|
||||
$new_modules[$index]['child'][] = $child;
|
||||
$new_modules[$index]['have_childs'] = true;
|
||||
unset($new_modules_child[$i]);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user