Commit 300e2f1a authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: available to hide item in listbox

parent 427fa528
...@@ -221,6 +221,7 @@ ...@@ -221,6 +221,7 @@
if (form_definition.extended_search) {\n if (form_definition.extended_search) {\n
suboption_dict.extended_search = form_definition.extended_search;\n suboption_dict.extended_search = form_definition.extended_search;\n
}\n }\n
suboption_dict.hide_enabled = form_definition.hide_enabled;\n
\n \n
form_gadget.props.gadget_list = [];\n form_gadget.props.gadget_list = [];\n
form_gadget.props.id = erp5_document._id;\n form_gadget.props.id = erp5_document._id;\n
...@@ -527,7 +528,7 @@ ...@@ -527,7 +528,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.29788.20746.53162</string> </value> <value> <string>947.61242.55162.62464</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -545,7 +546,7 @@ ...@@ -545,7 +546,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1448902825.06</float> <float>1450703702.65</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -116,37 +116,150 @@ ...@@ -116,37 +116,150 @@
<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
\n <thead class="ui-bar-inherit head">\n
<!-- XXX must set a theme here -->\n <tr>\n
<section class="document_table">\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-show-thead-template" type="text/x-handlebars-template">\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
<th>\n
<button type="submit" name="show_all" data-i18n="Show All"></button>\n
</th>\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 value="{{value}}">\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" height="{{height}}" width="{{width}}"></div>\n
{{else}}\n
<a href="{{href}}" class="ui-link">\n
<div class="editable_div" height="{{height}}" width="{{width}}"></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-show-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
<th>\n
<input value="{{value}}" type="checkbox" checked="true" class="hide_form_element">\n
</th>\n
{{#each tr_value}}\n
<th>\n
{{#if type}}\n
{{#if editable}}\n
<div class="editable_div" height="{{height}}" width="{{width}}"></div>\n
{{else}}\n
<a href="{{href}}" class="ui-link">\n
<div class="editable_div" height="{{height}}" width="{{width}}"></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
<script id="listbox-template" type="text/x-handlebars-template">\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="{{i18n}}" name="Hide" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-eye ui-btn-icon-left {{hide_class}}">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 <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
<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
</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
<form class="document_table">\n
</form>\n
</body>\n </body>\n
</html> </html>
...@@ -285,7 +398,7 @@ ...@@ -285,7 +398,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>947.61407.56245.56729</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -303,7 +416,7 @@ ...@@ -303,7 +416,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1447174021.56</float> <float>1450714238.02</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -157,6 +157,7 @@ ...@@ -157,6 +157,7 @@
form_options.form_definition.extended_search = extended_search;\n form_options.form_definition.extended_search = extended_search;\n
search_options.extended_search = extended_search;\n search_options.extended_search = extended_search;\n
}\n }\n
form_options.form_definition.hide_enabled = true;\n
var new_content_action = options.erp5_document._links.action_object_new_content_action;\n var new_content_action = options.erp5_document._links.action_object_new_content_action;\n
if (new_content_action !== undefined) {\n if (new_content_action !== undefined) {\n
new_content_action = gadget.getUrlFor({command: \'change\', options: {view: new_content_action.href, editable: true}});\n new_content_action = gadget.getUrlFor({command: \'change\', options: {view: new_content_action.href, editable: true}});\n
...@@ -356,7 +357,7 @@ ...@@ -356,7 +357,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.25536.23903.53674</string> </value> <value> <string>947.61250.52429.21469</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -374,7 +375,7 @@ ...@@ -374,7 +375,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1448889486.07</float> <float>1450704179.93</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test RenderJS UI</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test RenderJS UI</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />\n
\n
<!-- Clean Up -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/bar_module/ListBoxZuite_reset</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Reset Successfully.</td>\n
<td></td>\n
</tr>\n
<!-- should create in new ui instead of using script -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
\n
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />\n
\n
<!-- Initialize -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/renderjs_runner/</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//h3[@data-i18n=\'Other\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//h3[@data-i18n=\'Other\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n=\'Foos\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>link=Foos</td>\n
<td></td>\n
</tr>\n
\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query" />\n
\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyValue</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//tbody/tr[2]/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//tbody/tr[3]/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>waitForElementNotPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
<!-- only one element present -->\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//tbody/tr[2]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyValue</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>waitForElementNotPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr[2]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr[3]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyValue</td>\n
<td>//tbody/tr/th/input[@type="checkbox"]</td>\n
<td>on</td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//tbody/tr[2]/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//tbody/tr[3]/th/input[@type="checkbox"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Submit\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>waitForElementNotPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
<!-- only one element present -->\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//tbody/tr[2]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>focus</td>\n
<td>//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//button[@data-i18n=\'Hide Rows\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class="document_table"]//button[@data-i18n="Show All"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n="Show All"]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class="document_table"]//button[@data-i18n="Show All"]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>waitForElementNotPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n="Previous"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr/th</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr[2]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//tbody/tr[3]</td>\n
<td></td>\n
</tr>\n
\n
\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query" />\n
\n
\n
</tbody></table>\n
</body>\n
</html>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testHideItem</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -113,13 +113,19 @@ ...@@ -113,13 +113,19 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -111,13 +111,19 @@ ...@@ -111,13 +111,19 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
...@@ -189,13 +195,19 @@ ...@@ -189,13 +195,19 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -112,13 +112,19 @@ ...@@ -112,13 +112,19 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -108,16 +108,21 @@ ...@@ -108,16 +108,21 @@
\n \n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query" />\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query" />\n
\n \n
\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -111,13 +111,19 @@ ...@@ -111,13 +111,19 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -125,16 +125,23 @@ ...@@ -125,16 +125,23 @@
<!-- Sort -->\n <!-- Sort -->\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'plus\']</td>\n <td>//form[@class=\'plus\']</td>\n
......
...@@ -126,16 +126,23 @@ ...@@ -126,16 +126,23 @@
<!-- Sort -->\n <!-- Sort -->\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>focus</td>\n
<td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n <td>//form[@class="document_table"]//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//form[@class=\'plus\']</td>\n <td>//form[@class=\'plus\']</td>\n
......
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