Commit ac9fdba9 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: use page template for easy understanding

parent 9d1ad615
...@@ -116,37 +116,101 @@ ...@@ -116,37 +116,101 @@
<script src="rsvp.js" type="text/javascript"></script>\n <script src="rsvp.js" type="text/javascript"></script>\n
<script src="renderjs.js" type="text/javascript"></script>\n <script src="renderjs.js" type="text/javascript"></script>\n
<script src="URI.js" type="text/javascript"></script>\n <script src="URI.js" type="text/javascript"></script>\n
<script src="handlebars.js" type="text/javascript"></script>\n
\n
\n \n
\n \n
<!-- custom script -->\n <!-- custom script -->\n
<script src="gadget_erp5_field_listbox.js" type="text/javascript"></script>\n <script src="gadget_erp5_field_listbox.js" type="text/javascript"></script>\n
\n \n
</head>\n <script id="listbox-hidden-thead-template" type="text/x-handlebars-template">\n
<body>\n <table>\n
<thead class="ui-bar-inherit head">\n
<tr>\n
{{#if show_anchor}}\n
<th data-i18n="Jump">Jump</th>\n
{{/if}}\n
{{#each head_value}}\n
<th data-i18n="{{data-i18n}}" class="{{class_value}}">{{text}}</th>\n
{{/each}}\n
</tr>\n
</thead>\n
</table>\n
</script>\n
\n
<script id="listbox-hidden-tbody-template" type="text/x-handlebars-template">\n
<table>\n
<tbody class="tbody">\n
{{#each body_value}}\n
<tr>\n
{{#if ../../show_anchor}}\n
<th class="ui-link ui-btn ui-corner-all ui-icon-carat-r ui-btn-icon-notext"></th>\n
{{/if}}\n
{{#each tr_value}}\n
<th>\n
{{#if type}}\n
{{#if editable}}\n
<div class="editable_div" column="{{column}}" line="{{line}}"></div>\n
{{else}}\n
<a href="{{href}}" class="ui-link">\n
<div class="editable_div" column="{{column}}" line="{{line}}"></div>\n
</a>\n
{{/if}}\n
{{else}}\n
<a href="{{href}}" class="ui-link" >{{text}}</a>\n
{{/if}}\n
</th>\n
{{/each}}\n
</tr>\n
{{/each}}\n
</tbody>\n
</table>\n
</script>\n
\n
<script id="listbox-tfoot-template" type="text/x-handlebars-template">\n
<table>\n
<tfoot class="ui-bar-inherit tfoot">\n
<th colspan="{{colspan}}">\n
<div class="ui-controlgroup ui-controlgroup-horizontal ui-corner-all ui-paging-menu">\n
<div class="ui-controlgroup-controls">\n
<a class="{{previous_classname}}" data-i18n="Previous" href="{{previous_url}}">Previous</a>\n
<span class="ui-btn ui-disabled" data-i18n="{{record}}">{{record}}</span>\n
<a class="{{next_classname}}" data-i18n="Next" href="{{next_url}}">Next</a>\n
</div>\n
</div>\n
</th>\n
</tfoot>\n
</table>\n
</script>\n
\n \n
<!-- XXX must set a theme here -->\n <script id="listbox-template" type="text/x-handlebars-template">\n
<section class="document_table">\n
<div class="ui-table-header ui-header ui-bar-c ui-corner-all">\n <div class="ui-table-header ui-header ui-bar-c ui-corner-all">\n
<div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-left">\n <div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-left">\n
<div class="ui-controlgroup-controls">\n <div class="ui-controlgroup-controls">\n
<a data-i18n="hide" class="ui-responsive ui-btn ui-btn-icon-left ui-icon-eye ui-first-child ui-override-theme ui-disabled" href="#">Hide Rows</a>\n <button data-rel="hide" data-i18n="Hide Rows" name="Hide" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-eye ui-btn-icon-left ui-disabled">Hide Rows</button>\n
</div>\n </div>\n
</div>\n </div>\n
<h1 data-i18n="0 items selected" class="ui-title ui-override-theme">0 items selected</h1>\n <h1 data-i18n="0 items selected" class="ui-title ui-override-theme">0 items selected</h1>\n
<div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-right">\n <div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-right">\n
<div class="ui-controlgroup-controls">\n <div class="ui-controlgroup-controls">\n
<form class="sort_form">\n <form class="sort_form"> \n
<button data-rel="Sort" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-sort-amount-desc ui-btn-icon-left">Sort</button>\n <button data-rel="Sort" data-i18n="Sort" name="Sort" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-sort-amount-desc ui-btn-icon-left">Sort</button>\n
</form>\n </form>\n
</div>\n </div>\n
</div>\n </div>\n
</div>\n </div>\n
<table class="ui-responsive ui-body-c ui-table-inset">\n <table class="ui-responsive ui-body-c ui-table-inset">\n
<thead class="ui-bar-inherit"></thead>\n <thead class="ui-bar-inherit thead"></thead>\n
<tfoot class="ui-bar-inherit"></tfoot>\n <tfoot class="ui-bar-inherit tfoot"></tfoot>\n
</table>\n </table>\n
</section>\n </div>\n
\n </script>\n
\n
\n
</head>\n
<body>\n
<div class="document_table">\n
</div>\n
</body>\n </body>\n
</html> </html>
...@@ -285,7 +349,7 @@ ...@@ -285,7 +349,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.65186.57926.52411</string> </value> <value> <string>948.8752.11008.17032</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -303,7 +367,7 @@ ...@@ -303,7 +367,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1447174021.56</float> <float>1451486619.47</float>
<string>UTC</string> <string>UTC</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