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 @@
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",
title: "Status",
editable: 1,
type: "GadgetField"
field_gadget_param : {
css_class: "",
description: "Entry",
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",
title: "Status",
editable: 1,
type: "GadgetField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......@@ -174,7 +176,7 @@
"show_anchor": 0,
"default_params": {},
"editable": 1,
"editable_column_list": [],
"editable_column_list": ["text_content"],
"key": "slap_ticket_event_listbox",
"lines": 10,
"list_method": "portal_catalog",
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.32024.53732.34406</string> </value>
<value> <string>972.37320.56229.50244</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1545663769.66</float>
<float>1545844794.6</float>
<string>UTC</string>
</tuple>
</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