mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Merge branch 'ent-6643-show-summary-vmware' into 'develop'
Ent 6643 show summary vmware Closes pandora_enterprise#6643 See merge request artica/pandorafms!3611
This commit is contained in:
commit
ccc10abc16
@ -409,7 +409,7 @@ class DiscoveryTaskList extends HTML
|
|||||||
// Status.
|
// Status.
|
||||||
$table->headstyle[5] .= 'min-width: 50px; width: 100px;';
|
$table->headstyle[5] .= 'min-width: 50px; width: 100px;';
|
||||||
// Task type.
|
// Task type.
|
||||||
$table->headstyle[6] .= 'min-width: 150px; width: 150px;';
|
$table->headstyle[6] .= 'min-width: 200px; width: 200px;';
|
||||||
// Progress.
|
// Progress.
|
||||||
$table->headstyle[7] .= 'min-width: 50px; width: 150px;';
|
$table->headstyle[7] .= 'min-width: 50px; width: 150px;';
|
||||||
// Updated at.
|
// Updated at.
|
||||||
@ -552,16 +552,26 @@ class DiscoveryTaskList extends HTML
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
} else if ($task['review_mode'] == DISCOVERY_STANDARD) {
|
} else if ($task['review_mode'] == DISCOVERY_STANDARD) {
|
||||||
if ($task['status'] <= 0
|
if ($task['type'] == DISCOVERY_APP_VMWARE) {
|
||||||
&& empty($task['summary']) === false
|
if ($task['status'] <= 0 && $task['utimestamp'] != 0) {
|
||||||
) {
|
$data[5] = __('Done');
|
||||||
$data[5] = __('Done');
|
} else if ($task['status'] > 0) {
|
||||||
} else if ($task['utimestamp'] == 0
|
$data[5] = __('Pending');
|
||||||
&& empty($task['summary'])
|
} else {
|
||||||
) {
|
$data[5] = __('Not started');
|
||||||
$data[5] = __('Not started');
|
}
|
||||||
} else {
|
} else {
|
||||||
$data[5] = __('Pending');
|
if ($task['status'] <= 0
|
||||||
|
&& empty($task['summary']) === false
|
||||||
|
) {
|
||||||
|
$data[5] = __('Done');
|
||||||
|
} else if ($task['utimestamp'] == 0
|
||||||
|
&& empty($task['summary'])
|
||||||
|
) {
|
||||||
|
$data[5] = __('Not started');
|
||||||
|
} else {
|
||||||
|
$data[5] = __('Pending');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($task['status'] <= 0
|
if ($task['status'] <= 0
|
||||||
@ -1207,12 +1217,15 @@ class DiscoveryTaskList extends HTML
|
|||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
// Header information.
|
// Header information.
|
||||||
if ((int) $task['status'] <= 0
|
if ((int) $task['status'] <= 0 && empty($summary)) {
|
||||||
&& empty($summary)
|
if ($task['type'] == DISCOVERY_APP_VMWARE && $task['utimestamp'] != 0) {
|
||||||
&& $task['id_recon_script'] == 0
|
$outputMessage = __('Task completed.');
|
||||||
) {
|
} else {
|
||||||
|
$outputMessage = __('This task has never executed');
|
||||||
|
}
|
||||||
|
|
||||||
$output .= ui_print_info_message(
|
$output .= ui_print_info_message(
|
||||||
__('This task has never executed'),
|
$outputMessage,
|
||||||
'',
|
'',
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
@ -187,8 +187,7 @@ function load_modal(settings) {
|
|||||||
var formdata = new FormData();
|
var formdata = new FormData();
|
||||||
if (settings.extradata) {
|
if (settings.extradata) {
|
||||||
settings.extradata.forEach(function(item) {
|
settings.extradata.forEach(function(item) {
|
||||||
if (item.value != undefined)
|
if (item.value != undefined) formdata.append(item.name, item.value);
|
||||||
formdata.append(item.name, item.value);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
formdata.append("page", settings.onsubmit.page);
|
formdata.append("page", settings.onsubmit.page);
|
||||||
@ -215,7 +214,7 @@ function load_modal(settings) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(this).tooltip("open");
|
$(this).tooltip("open");
|
||||||
|
|
||||||
var element = $(this);
|
var element = $(this);
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function(element) {
|
function(element) {
|
||||||
@ -282,8 +281,8 @@ function load_modal(settings) {
|
|||||||
data: formdata,
|
data: formdata,
|
||||||
dataType: settings.onsubmit.dataType,
|
dataType: settings.onsubmit.dataType,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
console.log("successsssssssssssss");
|
console.log("successsssssssssssss");
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if (settings.ajax_callback != undefined) {
|
if (settings.ajax_callback != undefined) {
|
||||||
if (settings.idMsgCallback != undefined) {
|
if (settings.idMsgCallback != undefined) {
|
||||||
settings.ajax_callback(data, settings.idMsgCallback);
|
settings.ajax_callback(data, settings.idMsgCallback);
|
||||||
@ -304,17 +303,20 @@ function load_modal(settings) {
|
|||||||
document.getElementById(settings.form).submit();
|
document.getElementById(settings.form).submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
required_buttons.push({
|
required_buttons.push({
|
||||||
class:
|
class:
|
||||||
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next",
|
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next",
|
||||||
text: settings.modal.ok,
|
text: settings.modal.ok,
|
||||||
click: function() {
|
click: function() {
|
||||||
if (settings.onsubmit != undefined && settings.onsubmit.onConfirmSubmit != undefined) {
|
if (
|
||||||
settings.onsubmit.onConfirmSubmit(btnClickHandler, $(this));
|
settings.onsubmit != undefined &&
|
||||||
|
settings.onsubmit.onConfirmSubmit != undefined
|
||||||
|
) {
|
||||||
|
settings.onsubmit.onConfirmSubmit(btnClickHandler, $(this));
|
||||||
} else {
|
} else {
|
||||||
btnClickHandler($(this));
|
btnClickHandler($(this));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user