Commit c721d93e authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Thomas Gambier

[slapos_jio] move ticket listbox on top of hosting view page, show Upgrade Decision in listbox

Upgrade Decision which are not closed are added to ticket listbox
Closed ticket are now hidden

/reviewed-on nexedi/slapos.core!75
parents 7467ef4c 2a0375b8
<dtml-var table_0>.uid = <dtml-var table_1>.uid
<dtml-var RELATED_QUERY_SEPARATOR>
<dtml-var table_2>.uid = <dtml-var table_1>.category_uid
<dtml-var RELATED_QUERY_SEPARATOR>
<dtml-var table_1>.base_category_uid = <dtml-var "portal_categories.aggregate.getUid()">
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid
AND (<dtml-var table_0>.parent_uid = <dtml-var query_table>.uid
OR <dtml-var table_0>.uid = <dtml-var query_table>.uid)
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="SQL Method" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\n
table_1\n
table_2\n
RELATED_QUERY_SEPARATOR=" AND "\n
query_table="catalog"</string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>class_file_</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_hook</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>erp5_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>z_related_default_or_child_aggregate</string> </value>
</item>
<item>
<key> <string>max_cache_</string> </key>
<value> <int>100</int> </value>
</item>
<item>
<key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>SQL Method</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>z_related_default_or_child_aggregate</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<key_list>
<key>causality_subscription_request_related_uid | category,catalog/uid/z_related_causality_subscription_request</key>
<key>related_predecessor_but_with_different_title_than_catalog_title | category,catalog/uid/z_related_predecessor_but_with_different_title_than_catalog_title</key>
<key>default_or_child_aggregate_reference | catalog,category,catalog/reference/z_related_default_or_child_aggregate</key>
<key>default_or_child_aggregate_uid | catalog,category,catalog/uid/z_related_default_or_child_aggregate</key>
</key_list>
\ No newline at end of file
......@@ -309,17 +309,23 @@
"default_params": {},
"editable": 1,
"editable_column_list": [],
"key": "slap_project_computer_listbox",
"key": "slap_ticket_listbox",
"lines": 10,
relative_url: gadget.state.jio_key,
"list_method": "portal_catalog",
"query": "urn:jio:allDocs?query=%28%28portal_type%3A%22" +
"Support Request" + "%22%29%20AND%20%28" +
"default_aggregate_reference%3A%22" +
gadget.state.doc.reference + "%22%29%29",
"query": "urn:jio:allDocs?query=portal_type%3A%20%28%20%22" +
"Support Request" + "%22%2C%20%22" +
"Upgrade Decision" + "%22%29%20AND%20" +
"default_or_child_aggregate_reference" +
"%3A%22" + gadget.state.doc.reference + "%22%20AND%20" +
"simulation_state" + "%3A%28%22" +
"validated" + "%22%2C%22" + "suspended" +
"%22%2C%22" + "confirmed" + "%22%2C%22" +
"started" + "%22%2C%22" + "stopped" + "%22%29",
"portal_type": [],
"search_column_list": ticket_column_list,
"sort_column_list": ticket_column_list,
"sort": [["title", "ascending"]],
"sort": [["modification_date", "descending"]],
"title": "Associated Tickets",
"type": "ListBox"
},
......@@ -366,7 +372,7 @@
[["my_source_reference"], ["my_url_string"]]
], [
"bottom",
[["connection_listbox"], ["my_text_content"], ["listbox"], ["ticket_listbox"]]
[["ticket_listbox"], ["connection_listbox"], ["my_text_content"], ["listbox"]]
]]
}
});
......
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