1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

B #1400: change order table services (#3807)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2019-10-03 14:17:42 +02:00 committed by Tino Vázquez
parent c5ec2aa650
commit 72a8fe0f08
2 changed files with 11 additions and 14 deletions

View File

@ -65,9 +65,9 @@ define(function(require) {
this.columns = [
Locale.tr("ID"),
Locale.tr("Name"),
Locale.tr("Owner"),
Locale.tr("Group"),
Locale.tr("Name"),
Locale.tr("State"),
Locale.tr("Labels"),
"search_data"

View File

@ -64,9 +64,9 @@ define(function(require) {
this.columns = [
Locale.tr("ID"),
Locale.tr("Name"),
Locale.tr("Owner"),
Locale.tr("Group"),
Locale.tr("Name"),
Locale.tr("Labels"),
"search_data"
];
@ -100,24 +100,21 @@ define(function(require) {
var element = element_json[XML_ROOT];
var search = {
NAME: element.NAME,
UNAME: element.UNAME,
GNAME: element.GNAME
GNAME: element.GNAME,
NAME: element.NAME
}
var color_html = Status.state_lock_to_color("SERVICE_TEMPLATE",false, element_json[XML_ROOT]["LOCK"]);
return [
'<input class="check_item" type="checkbox" '+
'style="vertical-align: inherit;" id="'+this.resource.toLowerCase()+'_' +
element.ID + '" name="selected_items" value="' +
element.ID + '"/>'+color_html,
element.ID,
element.NAME,
element.UNAME,
element.GNAME,
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
btoa(unescape(encodeURIComponent(JSON.stringify(search))))
'<input class="check_item" type="checkbox" style="vertical-align: inherit;" id="'+this.resource.toLowerCase() + '_' + element.ID + '" name="selected_items" value="' + element.ID + '"/>'+color_html,
element.ID,
element.UNAME,
element.GNAME,
element.NAME,
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
btoa(unescape(encodeURIComponent(JSON.stringify(search))))
];
}
});