summaryrefslogtreecommitdiff
path: root/addons/base/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-08-01 12:44:53 +0200
committerXavier Morel <xmo@openerp.com>2011-08-01 12:44:53 +0200
commitc6f9cb5eb69427ab0353977dac8088f5487c5119 (patch)
tree73fc6fc84f3f1a291a47d513bf48bf4733735011 /addons/base/static/src/xml/base.xml
parent292ff1e17ad9ab0b6a8866c799f9008777be4064 (diff)
[FIX] improve usage of jquery validator, don't trigger RPC requests on invalid forms
* Use jquery.validate's submitHandler callback so the RPC calls are *only* performed when forms are valid * Move rules creation to markup when possible * Setup basic rule failure messages in validate() call, not afterwards bzr revid: xmo@openerp.com-20110801104453-a3iuyn033en57495
Diffstat (limited to 'addons/base/static/src/xml/base.xml')
-rw-r--r--addons/base/static/src/xml/base.xml26
1 files changed, 16 insertions, 10 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml
index de55e154dbc..ec8000919a6 100644
--- a/addons/base/static/src/xml/base.xml
+++ b/addons/base/static/src/xml/base.xml
@@ -80,7 +80,8 @@
<table align="center" class="db_option_table">
<tr>
<td><label for="super_admin_pwd">Super admin password:</label></td>
- <td><input type="password" name="super_admin_pwd" class="required"/></td>
+ <td><input type="password" name="super_admin_pwd"
+ class="required" autofocus="autofocus"/></td>
</tr>
<tr>
<td><label for="db_name">New database name:</label></td>
@@ -100,7 +101,7 @@
</t>
</select>
</t>
- </td>
+ </td>
</tr>
<tr>
<td><label for="create_admin_pwd">Super admin password:</label></td>
@@ -108,7 +109,8 @@
</tr>
<tr>
<td><label for="create_confirm_pwd">Confirm password:</label></td>
- <td><input type="password" name="create_confirm_pwd" class="required"/></td>
+ <td><input type="password" name="create_confirm_pwd" class="required"
+ equalTo="input[name=create_admin_pwd]"/></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="Create"/></td>
@@ -129,9 +131,9 @@
<tr>
<td><label for="drop_db">Database:</label></td>
<t t-if="db_list">
- <select name="drop_db">
+ <select name="drop_db" autofocus="autofocus">
<t t-foreach="db_list" t-as="db">
- <option t-att-value="db"><t t-esc="db"/></option>
+ <option t-att-value="db"><t t-esc="db"/></option>
</t>
</select>
</t>
@@ -160,7 +162,7 @@
<td><label for="backup_db">Database:</label></td>
<td>
<t t-if="db_list">
- <select name="backup_db">
+ <select name="backup_db" autofocus="autofocus">
<t t-foreach="db_list" t-as="db">
<option t-att-value="db"><t t-esc="db"/></option>
</t>
@@ -190,7 +192,8 @@
<table align="center" class="db_option_table">
<tr>
<td><label for="restore_db">File:</label></td>
- <td><input type="file" name="restore_db" class="required"/></td>
+ <td><input type="file" name="restore_db" class="required"
+ autofocus="autofocus"/></td>
</tr>
<tr>
<td><label for="restore_pwd">Password:</label></td>
@@ -218,15 +221,18 @@
<table align="center" class="db_option_table">
<tr>
<td><label for="old_pwd">Old password:</label></td>
- <td><input type="password" name="old_pwd" class="required"/></td>
+ <td><input type="password" name="old_pwd" class="required"
+ minlength="1" autofocus="autofocus"/></td>
</tr>
<tr>
<td><label for="new_pwd">New password:</label></td>
- <td><input type="password" name="new_pwd" class="required"/></td>
+ <td><input type="password" name="new_pwd" class="required"
+ minlength="1"/></td>
</tr>
<tr>
<td><label for="confirm_pwd">Confirm password:</label></td>
- <td><input type="password" name="confirm_pwd" class="required"/></td>
+ <td><input type="password" name="confirm_pwd" class="required"
+ equalTo="input[name=new_pwd]" minlength="1"/></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="Change Password"/></td>