diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2011-10-01 20:48:11 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2011-10-01 20:48:11 +0200 |
| commit | 57b86a10409f08345bfb2e14d039289ae4603104 (patch) | |
| tree | 957fa49ea222687ff62bc778ae6be594cd905429 /addons/auth_openid/static/src/xml/auth_openid.xml | |
| parent | ac214af8d058902d443792ee41cc2e4f9721bb5d (diff) | |
| parent | 84f188ce7d08d5a6d515b5d07d365ed930668ffe (diff) | |
merge
bzr revid: fp@tinyerp.com-20111001184811-umj7qepl2ly9jh0d
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> |
