summaryrefslogtreecommitdiff
path: root/addons/auth_signup/static/src
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-11-28 01:14:49 +0100
committerAntony Lesuisse <al@openerp.com>2012-11-28 01:14:49 +0100
commiteb4d14cd86518a419dfc68e5e3c59e4672d3bc40 (patch)
tree4cc2b4b9b30eea1c68ed6c6c1271d933dafd2f62 /addons/auth_signup/static/src
parentf63bdc67e28692028afcb31e46009e969d11d130 (diff)
[IMP] auth_signup remove all css, better wording, auth_oauth align button better wording
bzr revid: al@openerp.com-20121128001449-jy86hb86eyv0milv
Diffstat (limited to 'addons/auth_signup/static/src')
-rw-r--r--addons/auth_signup/static/src/css/Makefile3
-rw-r--r--addons/auth_signup/static/src/css/base.css10
-rw-r--r--addons/auth_signup/static/src/css/base.sass13
-rw-r--r--addons/auth_signup/static/src/js/auth_signup.js5
-rw-r--r--addons/auth_signup/static/src/xml/auth_signup.xml12
5 files changed, 11 insertions, 32 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 b2f6ea81c92..a51ced3778d 100644
--- a/addons/auth_signup/static/src/xml/auth_signup.xml
+++ b/addons/auth_signup/static/src/xml/auth_signup.xml
@@ -17,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 button" t-operation="after">
- <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>
+ <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>