diff options
| author | Olivier Dony <odo@openerp.com> | 2011-10-13 19:03:27 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-10-13 19:03:27 +0200 |
| commit | 3bffe65b2ca8bc50ece644e7947ad2bbd5c9341a (patch) | |
| tree | b307874680dbdce7b2f5109b7b696ea38e679e20 /addons/auth_openid/static/src/xml/auth_openid.xml | |
| parent | a93ca01b5b1365f92e191e3c429ef655e751b455 (diff) | |
| parent | 8a7c61cb96a541a9aaca51ffe3ee903407b26360 (diff) | |
[MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20111013170327-9rvfdkbgj01hdgxb
Diffstat (limited to 'addons/auth_openid/static/src/xml/auth_openid.xml')
| -rw-r--r-- | addons/auth_openid/static/src/xml/auth_openid.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/addons/auth_openid/static/src/xml/auth_openid.xml b/addons/auth_openid/static/src/xml/auth_openid.xml new file mode 100644 index 00000000000..6fbab72e831 --- /dev/null +++ b/addons/auth_openid/static/src/xml/auth_openid.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- vim:fdl=1: --> +<templates id="template" xml:space="preserve"> + + <t t-extend="Login"> + <t t-jquery=".oe_box2 tr:first td:nth-child(2)" t-operation="append"> + <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> + <li><a href="#googleapps" title="Google Apps" data-url="https://www.google.com/accounts/o8/site-xrds?hd={id}">Google</a></li> + <li><a href="#launchpad" title="Launchpad" data-url="https://launchpad.net/~{id}">Launchpad</a></li> + <li><a href="#openid_url" title="OpenID" data-url="{id}">OpenID</a></li> + </ul> + </t> + </t> + + <t t-extend="Login"> + <t t-jquery=".oe_box2 tr:first" t-operation="after"> + <tr> + <td><label for="googleapps">Google Apps Domain:</label></td> + <td><input type="text" name="googleapps" /></td> + </tr> + <tr> + <td><label for="launchpad">Username:</label></td> + <td><input type="text" name="launchpad" /></td> + </tr> + <tr> + <td><label for="openid_url">OpenID URL:</label></td> + <td><input type="text" name="openid_url" /></td> + </tr> + </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'); + this.each(function() { + var $i = $(this); + $i.attr('data-provider', $i.find('input').attr('name')); + }); + </t> + </t> + +</templates> |
