Commit 6b254e69 by Rafael Monnerat

slapos_jio: Fix GadgetField definition at the listbox

1 parent 3d48837c
Showing 20 changed files with 162 additions and 134 deletions
......@@ -30,14 +30,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
//key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34309.59418.7099</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663714.39</float>
<float>1552959507.85</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -30,14 +30,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = {
css_class: "",
description: "The Status",
hidden: result.data.rows[i].value.portal_type === "Slave Instance",
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_instance_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: result.data.rows[i].value.portal_type === "Slave Instance",
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_instance_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......@@ -47,23 +49,27 @@
if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) {
value = result.data.rows[i].value.connection_key;
result.data.rows[i].value.connection_key = {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
}
};
value = result.data.rows[i].value.connection_value;
result.data.rows[i].value.connection_value = {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>974.29153.39901.20360</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663910.89</float>
<float>1552959641.55</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -48,24 +48,28 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.translated_simulation_state_title = {
css_class: "",
description: "Payment State",
hidden: 0,
"default": {jio_key: value},
key: "translated_simulation_state_title",
url: "gadget_slapos_invoice_state.html",
title: "Payment State",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "Payment State",
hidden: 0,
"default": {jio_key: value},
key: "translated_simulation_state_title",
url: "gadget_slapos_invoice_state.html",
title: "Payment State",
type: "GadgetField"
}
};
result.data.rows[i].value.download = {
css_class: "",
description: "Download Invoice",
hidden: 0,
"default": {jio_key: value},
key: "download",
url: "gadget_slapos_invoice_printout.html",
title: "Download",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "Download Invoice",
hidden: 0,
"default": {jio_key: value},
key: "download",
url: "gadget_slapos_invoice_printout.html",
title: "Download",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.32073.32.37376</string> </value>
<value> <string>972.32024.53732.34406</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1522772820.15</float>
<float>1552960106.68</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -31,14 +31,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34312.53410.25173</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663888.89</float>
<float>1552958334.09</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -22,15 +22,17 @@
value = result.data.rows[i].id;
news = result.data.rows[i].Project_getNewsDict;
result.data.rows[i].value.Project_getNewsDict = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value,
result: news},
key: "status",
url: "gadget_slapos_project_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value,
result: news},
key: "status",
url: "gadget_slapos_project_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.38850.13428.56541</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545936132.29</float>
<float>1552958933.45</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -31,14 +31,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.computer_monitoring_status = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_computer_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -241,7 +241,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34312.19568.358</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -259,7 +259,7 @@
</tuple>
<state>
<tuple>
<float>1545663857.91</float>
<float>1552959405.91</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -35,19 +35,21 @@
for (i = 0; i < len; i += 1) {
if (1 || (result.data.rows[i].value.hasOwnProperty("text_content"))) {
result.data.rows[i].value.text_content = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {doc: {title: result.data.rows[i].value.title,
source: result.data.rows[i].value.source_title,
modification_date: result.data.rows[i].value.modification_date,
content_type: result.data.rows[i].value.content_type,
text_content: result.data.rows[i].value.text_content}},
key: "status",
url: "gadget_slapos_event_discussion_entry.html",
editable: 1,
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {doc: {title: result.data.rows[i].value.title,
source: result.data.rows[i].value.source_title,
modification_date: result.data.rows[i].value.modification_date,
content_type: result.data.rows[i].value.content_type,
text_content: result.data.rows[i].value.text_content}},
key: "status",
url: "gadget_slapos_event_discussion_entry.html",
editable: 1,
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34312.5102.14574</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663844.66</float>
<float>1552958730.67</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -21,14 +21,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.monitoring_status = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_site_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_site_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34170.7223.58060</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545655326.6</float>
<float>1552959192.5</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -31,23 +31,27 @@
if (1 || (result.data.rows[i].value.hasOwnProperty("connection_key"))) {
value = result.data.rows[i].value.connection_key;
result.data.rows[i].value.connection_key = {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
}
};
value = result.data.rows[i].value.connection_value;
result.data.rows[i].value.connection_value = {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
"default": value,
key: "status",
editable: 1,
url: "gadget_slapos_label_listbox_field.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.34311.9684.42598</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663788.86</float>
<float>1552958464.97</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -39,14 +39,16 @@
if (1 || (result.data.rows[i].hasOwnProperty("id"))) {
value = result.data.rows[i].id;
result.data.rows[i].value.monitoring_status = {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_site_status.html",
title: "Status",
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value},
key: "status",
url: "gadget_slapos_site_status.html",
title: "Status",
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -241,7 +241,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.41526.6603.40089</string> </value>
<value> <string>974.29127.37243.30225</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -259,7 +259,7 @@
</tuple>
<state>
<tuple>
<float>1522849395.6</float>
<float>1552958273.58</float>
<string>UTC</string>
</tuple>
</state>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!