[IMP]Improved code for image set in old password and new password field

bzr revid: ggh@tinyerp.com-20121029051436-r2j03sdzwg155beb
This commit is contained in:
ggh-openerp
2012-10-29 10:44:36 +05:30
parent 1def54dcee
commit d31003fc4c
4 changed files with 27 additions and 10 deletions
+10 -2
View File
@@ -25,7 +25,6 @@
display: none !important;
}
}
.openerp.openerp_webclient_container {
height: 100%;
}
@@ -45,7 +44,7 @@
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
/* http://www.quirksmode.org/dom/inputfile.html
* http://stackoverflow.com/questions/2855589/replace-input-type-file-by-an-image
*/ */
*/
}
.openerp :-moz-placeholder {
color: #afafb6 !important;
@@ -527,6 +526,15 @@
.openerp .oe_grey {
color: #aaaaaa;
}
.openerp .oe_placeImage_old input {
background: url(/web/static/src/img/old_key.png) no-repeat 4px;
}
.openerp .oe_placeImage_new input {
background: url(/web/static/src/img/new_key.png) no-repeat 4px;
}
.openerp .oe_padding_left input {
padding-left: 22px;
}
.openerp .oe_tag {
border: 1px solid #afafb6;
font-size: 11px;
+7
View File
@@ -462,6 +462,13 @@ $sheet-max-width: 860px
// }}}
.oe_placeImage_old input
background: url(/web/static/src/img/old_key.png) no-repeat 4px
.oe_placeImage_new input
background: url(/web/static/src/img/new_key.png) no-repeat 4px
.oe_padding_left input
padding-left: 22px
// Tags (for many2many tags, among others) {{{
.oe_tag
border: 1px solid $tag-border
+2
View File
@@ -329,6 +329,8 @@ instance.web.DatabaseManager = instance.web.Widget.extend({
self.$el.find("form[name=drop_db_form]").validate({ submitHandler: self.do_drop });
self.$el.find("form[name=backup_db_form]").validate({ submitHandler: self.do_backup });
self.$el.find("form[name=restore_db_form]").validate({ submitHandler: self.do_restore });
self.$el.find("form td input[name=old_pwd]").css('background','url(/web/static/src/img/old_key.png) no-repeat 4px');
self.$el.find("form td input[name=new_pwd]").css('background','url(/web/static/src/img/new_key.png) no-repeat 4px');
self.$el.find("form[name=change_pwd_form]").validate({
messages: {
old_pwd: "Please enter your previous password",
+8 -8
View File
@@ -255,15 +255,15 @@
<table align="center" class="db_option_table">
<tr>
<td><label for="old_pwd">Master password:</label></td>
<td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
<td class="oe_placeImage_old oe_padding_left"><input type="password" name="old_pwd" placeholder=" Password..." class="required" minlength="1" autofocus="autofocus"/></td>
</tr>
<tr>
<td><label for="new_pwd">New master password:</label></td>
<td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
<td class="oe_placeImage_new oe_padding_left"><input type="password" name="new_pwd" placeholder=" Password..." class="required" minlength="1"/></td>
</tr>
<tr>
<td><label for="confirm_pwd">Confirm new master password:</label></td>
<td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
<td class="oe_padding_left"><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
</tr>
</table>
</form>
@@ -291,17 +291,17 @@
<table align="center">
<tr>
<td><label for="old_pwd">Old Password:</label></td>
<td><input type="password" name="old_pwd"
minlength="1" autofocus="autofocus"/></td>
<td class="oe_placeImage_old oe_padding_left"><input type="password" name="old_pwd"
minlength="1" placeholder=" Password..." autofocus="autofocus"/></td>
</tr>
<tr>
<td><label for="new_password">New Password:</label></td>
<td><input type="password" name="new_password"
minlength="1"/></td>
<td class="oe_placeImage_new oe_padding_left"><input type="password" name="new_password"
placeholder=" Password..." minlength="1"/></td>
</tr>
<tr>
<td><label for="confirm_pwd">Confirm Password:</label></td>
<td><input type="password" name="confirm_pwd"
<td class="oe_padding_left"><input type="password" name="confirm_pwd"
minlength="1"/></td>
</tr>
<tr>