diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-02-12 11:15:47 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-02-12 11:15:47 +0100 |
| commit | 33bfec21743c9200f491bd0ddcc6d368cd948f85 (patch) | |
| tree | ec649b7f20a673774917df6be0a08a38307704bf /addons/auth_oauth/views | |
| parent | 795c8fc0d9f2f592acbfca01a603fa1d3195562c (diff) | |
[IMP] Make auth_oauth depends of auth_signup, merge and remove auth_oauth_signup link module
bzr revid: fme@openerp.com-20140212101547-i4bcz9lcrut11kpu
Diffstat (limited to 'addons/auth_oauth/views')
| -rw-r--r-- | addons/auth_oauth/views/auth_oauth_login.xml | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/addons/auth_oauth/views/auth_oauth_login.xml b/addons/auth_oauth/views/auth_oauth_login.xml index f969d2f5eed..6c5deca924c 100644 --- a/addons/auth_oauth/views/auth_oauth_login.xml +++ b/addons/auth_oauth/views/auth_oauth_login.xml @@ -3,15 +3,35 @@ --> <openerp> <data> + <template id="auth_oauth.providers" name="OAuth Providers"> + <div t-foreach="providers" t-as="p"> + <a t-att-href="p['auth_link']" class="btn btn-link"> + <i t-att-class="p['css_class']"/> + <t t-esc="p['body']"/> + </a> + </div> + </template> + <template id="auth_oauth.login" inherit_id="web.login" name="OAuth Login buttons"> <xpath expr="//button[@type='submit']" position="before"> <div class="pull-right"> - <div t-foreach="providers" t-as="p"> - <a t-att-href="p['auth_link']" class="btn btn-link"> - <i t-att-class="p['css_class']"/> - <t t-esc="p['body']"/> - </a> - </div> + <t t-call="auth_oauth.providers"/> + </div> + </xpath> + </template> + + <template id="auth_oauth.signup" inherit_id="auth_signup.signup" name="OAuth Signup buttons"> + <xpath expr="//button[@type='submit']" position="before"> + <div class="pull-right"> + <t t-call="auth_oauth.providers"/> + </div> + </xpath> + </template> + + <template id="auth_oauth.reset_password" inherit_id="auth_signup.reset_password" name="OAuth Reset Password buttons"> + <xpath expr="//button[@type='submit']" position="before"> + <div class="pull-right"> + <t t-call="auth_oauth.providers"/> </div> </xpath> </template> |
