UX console in progress... (Fixed filter form in policy modules)

This commit is contained in:
Arturo Gonzalez 2017-01-19 10:13:59 +01:00
parent 55063a20dc
commit cfce014ad3
2 changed files with 12 additions and 9 deletions
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;
}