~jfb-tempo-consulting/unifield-web/py3-int

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/change_password.mako

  • Committer: jf
  • Date: 2023-08-17 11:45:31 UTC
  • mfrom: (5008.1.49 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20230817114531-jvmqc8nl6yezmhnn
[MERGE] UF30.0rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
            })
14
14
        }
15
15
        function disable_save() {
 
16
            email = document.getElementById('email');
 
17
            if (!email.checkValidity()) {
 
18
                jQuery(email).addClass('errorfield');
 
19
                alert(_('Invalid Email address'));
 
20
                return false;
 
21
            } else {
 
22
                jQuery(email).removeClass('errorfield');
 
23
            }
 
24
 
16
25
            var pass = $("#show_password").val()
17
26
            $("#password").val(pass);
18
27
            $("#show_password").val(false);
86
95
                                </tr>
87
96
                                <tr>
88
97
                                    <td class="label"><label for="email">${_("Email address:")}</label></td>
89
 
                                    <td style="padding: 3px;"><input type="input" id="email" name="email" class="db_user_pass" autocomplete="off" value="${email}">
 
98
                                    <td style="padding: 3px;"><input type="email" id="email" name="email" class="db_user_pass" autocomplete="off" value="${email}">
90
99
                                    </td>
91
100
 
92
101
                                </tr>