diff options
| author | Raphael Collet <rco@openerp.com> | 2012-09-25 12:40:13 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2012-09-25 12:40:13 +0200 |
| commit | aceae3501efeece3366db5a478bf450067e37301 (patch) | |
| tree | d151f90bf65e142d2c9c4e67c5e947b605aa8a68 /addons/auth_signup/static/src/xml | |
| parent | d19ea766fa0499f5905c15894cf8e0615c1555d6 (diff) | |
[IMP] auth_signup: extend the login form to allow signups
bzr revid: rco@openerp.com-20120925104013-f2vfqcjknx7zyo26
Diffstat (limited to 'addons/auth_signup/static/src/xml')
| -rw-r--r-- | addons/auth_signup/static/src/xml/auth_signup.xml | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/addons/auth_signup/static/src/xml/auth_signup.xml b/addons/auth_signup/static/src/xml/auth_signup.xml index c2eec846d15..73e26eb6ba8 100644 --- a/addons/auth_signup/static/src/xml/auth_signup.xml +++ b/addons/auth_signup/static/src/xml/auth_signup.xml @@ -1,28 +1,27 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- vim:fdl=1: ---> +<!-- vim:fdl=1: --> <templates id="template" xml:space="preserve"> -<t t-extend="Login"> - <t t-jquery="form ul:first li:last" t-operation="after"> - <li> - <a class="oe_signup" href="#">Sign Up</a> - </li> + <t t-extend="Login"> + <t t-jquery="form ul:first li:first" t-operation="before"> + <li class="oe_signup"> + <input name="signup" type="checkbox" value="check_signup"/> + Create a new account + </li> + <li class="oe_signup">Name</li> + <li class="oe_signup"> + <input name="name" type="text"/> + </li> + </t> + <t t-jquery="form ul:first li:contains('Username')" t-operation="replace"> + <li>Username <span class="oe_signup">(Email)</span></li> + </t> + <t t-jquery="form ul:first li:last" t-operation="before"> + <li class="oe_signup">Confirm Password</li> + <li class="oe_signup"> + <input name="confirm_password" type="password"/> + </li> + </t> </t> -</t> - -<t t-name="auth_signup.signup"> - <div> - <form> - Name = <input type="text" name="name"/><br/> - Email = <input type="email" name="email"/><br/> - Password = <input type="password" name="password"/><br/> - Confirmation = <input type="password" name="password_confirmation"/><br/> - <button type="submit" disabled="disabled">Signup</button> - </form> - </div> -</t> - - </templates> |
