1 <?xml version="1.0" encoding="UTF-8"?>
3 <templates id="template" xml:space="preserve">
6 <t t-jquery=".oe_box2 tr:first td:nth-child(2)" t-operation="append">
7 <ul class="openid_providers">
8 <li><a href="#login,password" title="Password" data-url="" id="btn_password">Password</a></li>
9 <li><a href="#google" title="Google" data-url="https://www.google.com/accounts/o8/id">Google</a></li>
10 <li><a href="#googleapps" title="Google Apps" data-url="https://www.google.com/accounts/o8/site-xrds?hd={id}">Google</a></li>
11 <li><a href="#launchpad" title="Launchpad" data-url="https://launchpad.net/~{id}">Launchpad</a></li>
12 <li><a href="#openid_url" title="OpenID" data-url="{id}">OpenID</a></li>
18 <t t-jquery=".oe_box2 tr:first" t-operation="after">
20 <td><label for="googleapps">Google Apps Domain:</label></td>
21 <td><input type="text" name="googleapps" /></td>
24 <td><label for="launchpad">Username:</label></td>
25 <td><input type="text" name="launchpad" /></td>
28 <td><label for="openid_url">OpenID URL:</label></td>
29 <td><input type="text" name="openid_url" /></td>
35 <t t-jquery=".oe_box2 tr:has(input[name!='db'])">
36 //this.addClass('auth_choice'); // XXX for some reason, not all tr tags are HTMLElement's and thus, jQuery decide to not change the class...
37 this.attr('class', 'auth_choice');
38 this.each(function() {
40 $i.attr('data-provider', $i.find('input').attr('name'));