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