Commit 942670b8 authored by Sven Franck's avatar Sven Franck Committed by Romain Courteaud

erp5_web_renderjs_ui: wrap module listviews in collapsible set

parent dbab2ea9
......@@ -124,12 +124,15 @@
\n
<!-- XXX must set theme here! -->\n
<script id="table-template" type="text/x-handlebars-template">\n
<ul data-role="listview" data-theme="c" data-inset="true" class="document-listview">\n
<li data-role="list-divider"><h1>{{definition_title}}</h1></li>\n
<div data-role="collapsible">\n
<h3>{{definition_title}}</h3>\n
<ul data-role="listview" data-theme="c" class="document-listview ui-corner-all">\n
<!--<li data-role="list-divider"><h1>{{definition_title}}</h1></li>-->\n
{{#each documentlist}}\n
<li><a class="ui-body-inherit" href="{{link}}">{{title}}</a></li>\n
{{/each}}\n
</ul>\n
</div>\n
</script>\n
\n
</head>\n
......@@ -273,7 +276,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>937.51130.19006.10035</string> </value>
<value> <string>938.16173.13985.45960</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -291,7 +294,7 @@
</tuple>
<state>
<tuple>
<float>1411573263.53</float>
<float>1413301675.99</float>
<string>GMT</string>
</tuple>
</state>
......
......@@ -168,7 +168,7 @@
business_application_list = [],\n
business_application,\n
module_info,\n
result_html = "",\n
result_html = \'<div data-role="collapsible-set" data-theme="c">\',\n
doc;\n
for (i = 0; i < document_list.length; i += 1) {\n
doc = document_list[i];\n
......@@ -215,12 +215,14 @@
for (i = 0; i < business_application_list.length; i += 1) {\n
business_application = business_application_list[i];\n
business_application_dict[business_application].sort(sort_module);\n
\n
result_html += table_template({\n
definition_title: business_application,\n
documentlist: business_application_dict[business_application]\n
});\n
}\n
\n
result_html += \'</div>\';\n
\n
gadget.props.element.querySelector(\'.document_list\').innerHTML = result_html;\n
});\n
......@@ -348,7 +350,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
<value> <string>sven</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -362,7 +364,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>937.43885.22553.46165</string> </value>
<value> <string>938.16182.63738.26641</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -380,7 +382,7 @@
</tuple>
<state>
<tuple>
<float>1411461029.62</float>
<float>1413301956.28</float>
<string>GMT</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