diff options
Diffstat (limited to 'addons/auth_signup/static/src')
| -rw-r--r-- | addons/auth_signup/static/src/css/Makefile | 3 | ||||
| -rw-r--r-- | addons/auth_signup/static/src/css/base.css | 10 | ||||
| -rw-r--r-- | addons/auth_signup/static/src/css/base.sass | 13 | ||||
| -rw-r--r-- | addons/auth_signup/static/src/js/auth_signup.js | 5 | ||||
| -rw-r--r-- | addons/auth_signup/static/src/xml/auth_signup.xml | 15 |
5 files changed, 13 insertions, 33 deletions
diff --git a/addons/auth_signup/static/src/css/Makefile b/addons/auth_signup/static/src/css/Makefile deleted file mode 100644 index d6b4f4b2fc8..00000000000 --- a/addons/auth_signup/static/src/css/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -base.css: base.sass - sass --trace -t expanded base.sass base.css - diff --git a/addons/auth_signup/static/src/css/base.css b/addons/auth_signup/static/src/css/base.css deleted file mode 100644 index 3f97e7a9301..00000000000 --- a/addons/auth_signup/static/src/css/base.css +++ /dev/null @@ -1,10 +0,0 @@ -@charset "utf-8"; -.openerp .oe_login .oe_signup_show { - display: none; -} -.openerp .oe_login_signup .oe_signup_show { - display: block !important; -} -.openerp .oe_login_signup .oe_signup_hide { - display: none; -} diff --git a/addons/auth_signup/static/src/css/base.sass b/addons/auth_signup/static/src/css/base.sass deleted file mode 100644 index f97665d192c..00000000000 --- a/addons/auth_signup/static/src/css/base.sass +++ /dev/null @@ -1,13 +0,0 @@ -@charset "utf-8" - -.openerp - // Regular login form - .oe_login - .oe_signup_show - display: none - // Signup form - .oe_login_signup - .oe_signup_show - display: block !important - .oe_signup_hide - display: none diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js index 962a54f5920..a6b401a4c7b 100644 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ b/addons/auth_signup/static/src/js/auth_signup.js @@ -7,12 +7,15 @@ openerp.auth_signup = function(instance) { var self = this; var d = this._super(); + self.$(".oe_signup_show").hide(); // to switch between the signup and regular login form this.$('a.oe_signup_signup').click(function(ev) { if (ev) { ev.preventDefault(); } self.$el.addClass("oe_login_signup"); + self.$(".oe_signup_show").show(); + self.$(".oe_signup_hide").hide(); return false; }); this.$('a.oe_signup_back').click(function(ev) { @@ -20,6 +23,8 @@ openerp.auth_signup = function(instance) { ev.preventDefault(); } self.$el.removeClass("oe_login_signup"); + self.$(".oe_signup_show").hide(); + self.$(".oe_signup_hide").show(); delete self.params.token; return false; }); diff --git a/addons/auth_signup/static/src/xml/auth_signup.xml b/addons/auth_signup/static/src/xml/auth_signup.xml index e63bd5863b0..a51ced3778d 100644 --- a/addons/auth_signup/static/src/xml/auth_signup.xml +++ b/addons/auth_signup/static/src/xml/auth_signup.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- vim:fdl=1: --> +<!-- vim:fdl=1: +--> <templates id="template" xml:space="preserve"> <t t-extend="Login"> @@ -16,12 +17,12 @@ <li class="oe_signup_show"><input name="confirm_password" type="password"/></li> </t> <t t-jquery="form ul:first li:has(button[name=submit])" t-operation="replace"> - <li class="oe_signup_hide"><button name="submit">Log in</button></li> - <li class="oe_signup_show"><button name="submit">Sign in</button></li> - </t> - <t t-jquery="form ul:first li:last" t-operation="after"> - <li><a class="oe_signup_hide oe_signup_signup" href="#">Sign Up</a></li> - <li><a class="oe_signup_show oe_signup_back" href="#">Back to Login</a></li> + <li> + <button class="oe_signup_hide" name="submit">Log in</button> + <button class="oe_signup_show" name="submit">Sign up</button> + <a class="oe_signup_hide oe_signup_signup" href="#">Sign Up</a> + <a class="oe_signup_show oe_signup_back" href="#">Back to Login</a> + </li> </t> </t> |
