Merge branch '3112-Bug-en-creacion-de-alertas-en-cluster' into 'develop'
fix duplicated table in active-passive cluster's alert builder See merge request artica/pandorafms!2010 Former-commit-id: 5b92294a64c3ba4baa65f6eba4087edebd450ed9
This commit is contained in:
commit
8d3644b002
|
@ -139,20 +139,18 @@ if (check_acl ($config['id_user'], 0, "LM")) {
|
||||||
$table->data[3][1] .= ' ' . __('seconds') . ui_print_help_icon ('action_threshold', true);
|
$table->data[3][1] .= ' ' . __('seconds') . ui_print_help_icon ('action_threshold', true);
|
||||||
|
|
||||||
|
|
||||||
if (!isset($step) || $step!=5) {
|
if (!isset($step)) {
|
||||||
echo '<form class="add_alert_form" method="post">';
|
echo '<form class="add_alert_form" method="post">';
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
|
|
||||||
if (!isset($step) || $step!=5) {
|
if (!isset($step)) {
|
||||||
if($id_cluster){
|
if($id_cluster){
|
||||||
echo "<input onclick='window.location.replace(\"index.php?sec=reporting&sec2=enterprise/godmode/reporting/cluster_view&id=".$id_cluster."\");' type=button style='float:right;margin-left:20px;' name='store' class='sub upd' value='".__('Finish and view cluster')."'>";
|
echo "<input onclick='window.location.replace(\"index.php?sec=reporting&sec2=enterprise/godmode/reporting/cluster_view&id=".$id_cluster."\");' type=button style='float:right;margin-left:20px;' name='store' class='sub upd' value='".__('Finish and view cluster')."'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
html_print_submit_button (__('Add alert'), 'add', false, 'class="sub wand"');
|
html_print_submit_button (__('Add alert'), 'add', false, 'class="sub wand"');
|
||||||
html_print_input_hidden ('create_alert', 1);
|
html_print_input_hidden ('create_alert', 1);
|
||||||
echo '</div></form>';
|
echo '</div></form>';
|
||||||
|
@ -225,7 +223,7 @@ $(document).ready (function () {
|
||||||
$("#value", $value).append ("<em><?php echo __('Empty') ?></em>");
|
$("#value", $value).append ("<em><?php echo __('Empty') ?></em>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#value", $value).append (parseInt(data));
|
$("#value", $value).append (data);
|
||||||
}
|
}
|
||||||
$loading.hide ();
|
$loading.hide ();
|
||||||
$value.show ();
|
$value.show ();
|
||||||
|
|
Loading…
Reference in New Issue