Commit 86102cc6 authored by Sven Franck's avatar Sven Franck Committed by Romain Courteaud

erp5_web_renderjs_ui: added section headers and icons to tabs

parent c3f8cad0
...@@ -123,8 +123,13 @@ ...@@ -123,8 +123,13 @@
<script src="gadget_erp5_page_tab.js" type="text/javascript"></script>\n <script src="gadget_erp5_page_tab.js" type="text/javascript"></script>\n
\n \n
<script id="table-template" type="text/x-handlebars-template">\n <script id="table-template" type="text/x-handlebars-template">\n
<section class="ui-content-header-plain">\n
<h3 class="ui-content-title ui-body-c">\n
<span class="ui-icon ui-icon-custom ui-icon-{{definition_icon}}">&nbsp;</span>\n
{{definition_title}}\n
</h3>\n
</section>\n
<ul data-role="listview" data-theme="c" data-inset="true" class="document-listview">\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
{{#each documentlist}}\n {{#each documentlist}}\n
<li><a class="ui-body-inherit" href="{{link}}">{{title}}</a></li>\n <li><a class="ui-body-inherit" href="{{link}}">{{title}}</a></li>\n
{{/each}}\n {{/each}}\n
...@@ -257,7 +262,7 @@ ...@@ -257,7 +262,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>
...@@ -271,7 +276,7 @@ ...@@ -271,7 +276,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>937.54015.61486.15872</string> </value> <value> <string>938.25853.26425.62054</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -289,7 +294,7 @@ ...@@ -289,7 +294,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1411726096.57</float> <float>1413882117.05</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -189,12 +189,14 @@ ...@@ -189,12 +189,14 @@
\n \n
gadget.props.element.innerHTML = table_template({\n gadget.props.element.innerHTML = table_template({\n
definition_title: "Views",\n definition_title: "Views",\n
definition_icon: "eye",\n
documentlist: [{\n documentlist: [{\n
title: view_list[0].title,\n title: view_list[0].title,\n
link: all_result[all_result.length - 1]\n link: all_result[all_result.length - 1]\n
}]\n }]\n
}) + table_template({\n }) + table_template({\n
definition_title: "Editables",\n definition_title: "Editables",\n
definition_icon: "edit",\n
documentlist: tab_list\n documentlist: tab_list\n
});\n });\n
\n \n
...@@ -328,7 +330,7 @@ ...@@ -328,7 +330,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>
...@@ -342,7 +344,7 @@ ...@@ -342,7 +344,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>937.65458.5148.27426</string> </value> <value> <string>938.218.49333.26675</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -360,7 +362,7 @@ ...@@ -360,7 +362,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1412344005.15</float> <float>1413882038.33</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