Commit 7c22321a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Follow up the new API to add gadget on a column

parent cb1401e7
...@@ -35,8 +35,9 @@ ...@@ -35,8 +35,9 @@
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: "Entry",
hidden: 0, hidden: 0,
"default": {doc: {title: result.data.rows[i].value.title, "default": {doc: {title: result.data.rows[i].value.title,
source: result.data.rows[i].value.source_title, source: result.data.rows[i].value.source_title,
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
title: "Status", title: "Status",
editable: 1, editable: 1,
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",
...@@ -174,7 +176,7 @@ ...@@ -174,7 +176,7 @@
"show_anchor": 0, "show_anchor": 0,
"default_params": {}, "default_params": {},
"editable": 1, "editable": 1,
"editable_column_list": [], "editable_column_list": ["text_content"],
"key": "slap_ticket_event_listbox", "key": "slap_ticket_event_listbox",
"lines": 10, "lines": 10,
"list_method": "portal_catalog", "list_method": "portal_catalog",
......
...@@ -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.37320.56229.50244</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>1545663769.66</float> <float>1545844794.6</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