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,19 +35,21 @@ ...@@ -35,19 +35,21 @@
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 = {
css_class: "", field_gadget_param : {
description: "The Status", css_class: "",
hidden: 0, description: "Entry",
"default": {doc: {title: result.data.rows[i].value.title, hidden: 0,
source: result.data.rows[i].value.source_title, "default": {doc: {title: result.data.rows[i].value.title,
modification_date: result.data.rows[i].value.modification_date, source: result.data.rows[i].value.source_title,
content_type: result.data.rows[i].value.content_type, modification_date: result.data.rows[i].value.modification_date,
text_content: result.data.rows[i].value.text_content}}, content_type: result.data.rows[i].value.content_type,
key: "status", text_content: result.data.rows[i].value.text_content}},
url: "gadget_slapos_event_discussion_entry.html", key: "status",
title: "Status", url: "gadget_slapos_event_discussion_entry.html",
editable: 1, title: "Status",
type: "GadgetField" editable: 1,
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