Commit 6b254e69 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix GadgetField definition at the listbox

parent 3d48837c
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = { result.data.rows[i].value.computer_monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
url: "gadget_slapos_computer_status.html", url: "gadget_slapos_computer_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
//key: "listbox_uid:list", //key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34309.59418.7099</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663714.39</float> <float>1552959507.85</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = { result.data.rows[i].value.computer_monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: result.data.rows[i].value.portal_type === "Slave Instance", hidden: result.data.rows[i].value.portal_type === "Slave Instance",
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
url: "gadget_slapos_instance_status.html", url: "gadget_slapos_instance_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
...@@ -47,6 +49,7 @@ ...@@ -47,6 +49,7 @@
if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) { if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) {
value = result.data.rows[i].value.connection_key; value = result.data.rows[i].value.connection_key;
result.data.rows[i].value.connection_key = { result.data.rows[i].value.connection_key = {
field_gadget_param : {
css_class: "", css_class: "",
"default": value, "default": value,
key: "status", key: "status",
...@@ -54,9 +57,11 @@ ...@@ -54,9 +57,11 @@
url: "gadget_slapos_label_listbox_field.html", url: "gadget_slapos_label_listbox_field.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
value = result.data.rows[i].value.connection_value; value = result.data.rows[i].value.connection_value;
result.data.rows[i].value.connection_value = { result.data.rows[i].value.connection_value = {
field_gadget_param : {
css_class: "", css_class: "",
"default": value, "default": value,
key: "status", key: "status",
...@@ -64,6 +69,7 @@ ...@@ -64,6 +69,7 @@
url: "gadget_slapos_label_listbox_field.html", url: "gadget_slapos_label_listbox_field.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>974.29153.39901.20360</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663910.89</float> <float>1552959641.55</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.translated_simulation_state_title = { result.data.rows[i].value.translated_simulation_state_title = {
field_gadget_param : {
css_class: "", css_class: "",
description: "Payment State", description: "Payment State",
hidden: 0, hidden: 0,
...@@ -56,8 +57,10 @@ ...@@ -56,8 +57,10 @@
url: "gadget_slapos_invoice_state.html", url: "gadget_slapos_invoice_state.html",
title: "Payment State", title: "Payment State",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value.download = { result.data.rows[i].value.download = {
field_gadget_param : {
css_class: "", css_class: "",
description: "Download Invoice", description: "Download Invoice",
hidden: 0, hidden: 0,
...@@ -66,6 +69,7 @@ ...@@ -66,6 +69,7 @@
url: "gadget_slapos_invoice_printout.html", url: "gadget_slapos_invoice_printout.html",
title: "Download", title: "Download",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>965.32073.32.37376</string> </value> <value> <string>972.32024.53732.34406</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1522772820.15</float> <float>1552960106.68</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = { result.data.rows[i].value.computer_monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
url: "gadget_slapos_computer_status.html", url: "gadget_slapos_computer_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34312.53410.25173</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663888.89</float> <float>1552958334.09</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
value = result.data.rows[i].id; value = result.data.rows[i].id;
news = result.data.rows[i].Project_getNewsDict; news = result.data.rows[i].Project_getNewsDict;
result.data.rows[i].value.Project_getNewsDict = { result.data.rows[i].value.Project_getNewsDict = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
url: "gadget_slapos_project_status.html", url: "gadget_slapos_project_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.38850.13428.56541</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545936132.29</float> <float>1552958933.45</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = { result.data.rows[i].value.computer_monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
url: "gadget_slapos_computer_status.html", url: "gadget_slapos_computer_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34312.19568.358</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663857.91</float> <float>1552959405.91</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
if (1 || (result.data.rows[i].value.hasOwnProperty("text_content"))) { if (1 || (result.data.rows[i].value.hasOwnProperty("text_content"))) {
result.data.rows[i].value.text_content = { result.data.rows[i].value.text_content = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
editable: 1, editable: 1,
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34312.5102.14574</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663844.66</float> <float>1552958730.67</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.monitoring_status = { result.data.rows[i].value.monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
url: "gadget_slapos_site_status.html", url: "gadget_slapos_site_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34170.7223.58060</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545655326.6</float> <float>1552959192.5</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) { if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) {
value = result.data.rows[i].value.connection_key; value = result.data.rows[i].value.connection_key;
result.data.rows[i].value.connection_key = { result.data.rows[i].value.connection_key = {
field_gadget_param : {
css_class: "", css_class: "",
"default": value, "default": value,
key: "status", key: "status",
...@@ -38,9 +39,11 @@ ...@@ -38,9 +39,11 @@
url: "gadget_slapos_label_listbox_field.html", url: "gadget_slapos_label_listbox_field.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
value = result.data.rows[i].value.connection_value; value = result.data.rows[i].value.connection_value;
result.data.rows[i].value.connection_value = { result.data.rows[i].value.connection_value = {
field_gadget_param : {
css_class: "", css_class: "",
"default": value, "default": value,
key: "status", key: "status",
...@@ -48,6 +51,7 @@ ...@@ -48,6 +51,7 @@
url: "gadget_slapos_label_listbox_field.html", url: "gadget_slapos_label_listbox_field.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value> <value> <string>972.34311.9684.42598</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1545663788.86</float> <float>1552958464.97</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) { if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id; value = result.data.rows[i].id;
result.data.rows[i].value.monitoring_status = { result.data.rows[i].value.monitoring_status = {
field_gadget_param : {
css_class: "", css_class: "",
description: "The Status", description: "The Status",
hidden: 0, hidden: 0,
...@@ -47,6 +48,7 @@ ...@@ -47,6 +48,7 @@
url: "gadget_slapos_site_status.html", url: "gadget_slapos_site_status.html",
title: "Status", title: "Status",
type: "GadgetField" type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>966.41526.6603.40089</string> </value> <value> <string>974.29127.37243.30225</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1522849395.6</float> <float>1552958273.58</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment