Commit 26c75d1f authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: form inside form is forbidden

parent c496ff02
......@@ -125,19 +125,15 @@
<div class="ui-field-contain">\n
<div class="bottom">\n
<div class="ui-input-text ui-body-{{theme}} ui-input-has-icon ui-corner-all ui-shadow-inset ui-input-has-clear">\n
<form class="save_form">\n
<input type="text" data-enhanced="true" value="{{widget_value}}" name="search" {{widget_status_attribute}} >\n
<div class="ui-btn ui-input-clear ui-input-btn ui-corner-all ui-icon-search ui-btn-icon-notext" data-i18n="[node]header-submit">\n
- Submit<input data-enhanced="true" type="submit" data-i18n="[value]header-submit" value="Submit" {{widget_status_attribute}} />\n
</div>\n
</form>\n
<input type="text" data-enhanced="true" value="{{widget_value}}" name="search" {{widget_status_attribute}} >\n
<div class="ui-btn ui-input-clear ui-input-btn ui-corner-all ui-icon-search ui-btn-icon-notext" data-i18n="[node]header-submit">\n
- Submit<input data-enhanced="true" type="submit" data-i18n="[value]header-submit" value="Submit" {{widget_status_attribute}} />\n
</div>\n
</div>\n
<div class="ui-shadow-inset ui-btn ui-btn-inline ui-corner-all ui-btn-{{theme}} ui-btn-icon-notext ui-icon-filter ui-override-theme " >\n
<form class="filter_form">\n
<div class="ui-input-btn">\n
<input data-role="button" data-enhanced="true" type="submit" data-i18n="[value]" value=" ">\n
</div>\n
</form>\n
<div class="ui-input-btn">\n
<input class="filter_button" data-role="button" data-enhanced="true" type="submit" data-i18n="[value]" value=" ">\n
</div>\n
</div>\n
</div>\n
</div>\n
......@@ -285,7 +281,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>947.32333.16329.53265</string> </value>
<value> <string>948.36261.46161.37597</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -303,7 +299,7 @@
</tuple>
<state>
<tuple>
<float>1448969299.26</float>
<float>1453137329.15</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -185,10 +185,10 @@
var gadget = this,\n
url,\n
options = {},\n
sort_form = gadget.props.element.querySelector(".filter_form");\n
sort_button = gadget.props.element.querySelector(".filter_button");\n
return loopEventListener(\n
sort_form,\n
"submit",\n
sort_button,\n
"click",\n
false,\n
function () {\n
return new RSVP.Queue()\n
......@@ -341,7 +341,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>947.25574.60857.20718</string> </value>
<value> <string>948.36257.33692.30037</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -359,7 +359,7 @@
</tuple>
<state>
<tuple>
<float>1448889581.09</float>
<float>1453137078.14</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -91,13 +91,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -220,7 +220,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -291,7 +291,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -91,13 +91,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -180,7 +180,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -276,7 +276,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -92,13 +92,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -195,7 +195,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -274,7 +274,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -91,13 +91,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -124,7 +124,7 @@
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -239,14 +239,14 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -91,13 +91,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -319,14 +319,14 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -91,13 +91,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -220,14 +220,14 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'filter_form\']//input</td>\n
<td>//input[@class=\'filter_button\']</td>\n
<td></td>\n
</tr>\n
\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