diff --git a/addons/auth_oauth/data/auth_oauth_data.xml b/addons/auth_oauth/data/auth_oauth_data.xml index 8ee65946d84..67c1c98e7cc 100644 --- a/addons/auth_oauth/data/auth_oauth_data.xml +++ b/addons/auth_oauth/data/auth_oauth_data.xml @@ -7,7 +7,7 @@ userinfo https://accounts.odoo.com/oauth2/tokeninfo - zocial openerp + fa fa-fw o_custom_icon Log in with Odoo.com @@ -17,8 +17,8 @@ public_profile,email https://graph.facebook.com/me https://graph.facebook.com/me?fields=id,name,email - fa fa-facebook-square - Log in with facebook + fa fa-fw fa-facebook-square + Log in with Facebook Google OAuth2 @@ -26,7 +26,7 @@ https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/oauth2/v1/tokeninfo https://www.googleapis.com/oauth2/v1/userinfo - fa fa-google-plus-square + fa fa-fw fa-google-plus-square Log in with Google diff --git a/addons/auth_oauth/models/auth_oauth.py b/addons/auth_oauth/models/auth_oauth.py index de27556140c..2dbea1f85ec 100644 --- a/addons/auth_oauth/models/auth_oauth.py +++ b/addons/auth_oauth/models/auth_oauth.py @@ -18,6 +18,6 @@ class AuthOAuthProvider(models.Model): validation_endpoint = fields.Char(string='Validation URL', required=True) # OAuth provider URL to validate tokens data_endpoint = fields.Char(string='Data URL') enabled = fields.Boolean(string='Allowed') - css_class = fields.Char(string='CSS class', default='zocial') + css_class = fields.Char(string='CSS class', default='fa fa-fw fa-sign-in text-primary') body = fields.Char(required=True) sequence = fields.Integer() diff --git a/addons/auth_oauth/static/src/scss/auth_oauth.scss b/addons/auth_oauth/static/src/scss/auth_oauth.scss new file mode 100644 index 00000000000..3225d521ace --- /dev/null +++ b/addons/auth_oauth/static/src/scss/auth_oauth.scss @@ -0,0 +1,17 @@ +.o_auth_oauth_providers { + .fa-facebook-square { + color: #3b5998; + } + + .fa-google-plus-square { + color: #de564a; + } + + .o_custom_icon { + margin: 0 0.15em; + @include size(1em); + border: 3px solid #875A7B; + border-radius: 100%; + transform: translateY(2px); + } +} diff --git a/addons/auth_oauth/views/auth_oauth_templates.xml b/addons/auth_oauth/views/auth_oauth_templates.xml index bdc5cf4f244..37fb23ecdd3 100644 --- a/addons/auth_oauth/views/auth_oauth_templates.xml +++ b/addons/auth_oauth/views/auth_oauth_templates.xml @@ -1,35 +1,47 @@ - - -