summaryrefslogtreecommitdiff
path: root/addons/auth_openid/static/src/xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2012-01-12 13:54:16 +0100
committerChristophe Simonis <chs@openerp.com>2012-01-12 13:54:16 +0100
commit137310ed4a4e0fed5a20f1520662f2b3a8bd7b4f (patch)
treeaba5c544a9b700f554d140f709e2855dd62d24fe /addons/auth_openid/static/src/xml
parent5446d01ba1ee51659460cbf47945643029e5f011 (diff)
[FIX] adapt auth_openid to new login page
bzr revid: chs@openerp.com-20120112125416-uixisb5sks604ejg
Diffstat (limited to 'addons/auth_openid/static/src/xml')
-rw-r--r--addons/auth_openid/static/src/xml/auth_openid.xml33
1 files changed, 27 insertions, 6 deletions
diff --git a/addons/auth_openid/static/src/xml/auth_openid.xml b/addons/auth_openid/static/src/xml/auth_openid.xml
index 6fbab72e831..34894555668 100644
--- a/addons/auth_openid/static/src/xml/auth_openid.xml
+++ b/addons/auth_openid/static/src/xml/auth_openid.xml
@@ -3,7 +3,7 @@
<templates id="template" xml:space="preserve">
<t t-extend="Login">
- <t t-jquery=".oe_box2 tr:first td:nth-child(2)" t-operation="append">
+ <t t-jquery=".login .pane div#logo" t-operation="after">
<ul class="openid_providers">
<li><a href="#login,password" title="Password" data-url="" id="btn_password">Password</a></li>
<li><a href="#google" title="Google" data-url="https://www.google.com/accounts/o8/id">Google</a></li>
@@ -30,14 +30,35 @@
</tr>
</t>
</t>
+ <t t-extend="Login">
+ <t t-jquery=".login .pane form ul li:nth-child(4)" t-operation="after">
+ <li>
+ Google Apps Domain
+ </li>
+ <li>
+ <input type="text" name="googleapps" />
+ </li>
+ <li>
+ Username
+ </li>
+ <li>
+ <input type="text" name="launchpad" />
+ </li>
+ <li>
+ OpenID URL
+ </li>
+ <li>
+ <input type="text" name="openid_url" />
+ </li>
+ </t>
+ </t>
<t t-extend="Login">
- <t t-jquery=".oe_box2 tr:has(input[name!='db'])">
- //this.addClass('auth_choice'); // XXX for some reason, not all tr tags are HTMLElement's and thus, jQuery decide to not change the class...
- this.attr('class', 'auth_choice');
+ <t t-jquery=".login .pane form ul li:has(input)">
this.each(function() {
- var $i = $(this);
- $i.attr('data-provider', $i.find('input').attr('name'));
+ var $i = $(this),
+ dp = $i.find('input').attr('name');
+ $i.add($i.prev()).attr('class', 'auth_choice').attr('data-provider', dp);
});
</t>
</t>