add gmail button
[ikiwiki.git] / templates / openid-selector.tmpl
1 <script type="text/javascript" src="ikiwiki/openid/jquery.js"></script>
2 <script type="text/javascript" src="ikiwiki/openid/openid-jquery.js"></script>
3 <script type="text/javascript">
4 $(document).ready(function() {
5         openid.init('openid_identifier', "<TMPL_VAR NONOPENIDURL>");
6 });
7 </script>
8         
9 <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
10         <fieldset>
11                 <legend>Select your account provider</legend>
12
13                 <noscript>
14                 <ul>
15                 <TMPL_IF NONOPENIDURL>
16                 <li><a href="<TMPL_VAR NONOPENIDURL>">Local Account</a></li>
17                 </TMPL_IF>
18                 <li>OpenID:</div>
19                 </noscript>
20                 <input type="hidden" name="do" value="signin" />
21                 <input type="hidden" name="action" value="verify" />
22                 <div id="openid_choice">
23                         <div id="openid_btns"></div>
24                 </div>
25                 <div id="openid_input_area">
26                         <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
27                         <input id="openid_submit" type="submit" value="Login"/>
28                 </div>
29                 <TMPL_IF OPENID_ERROR>
30                 <div class="error"><TMPL_VAR OPENID_ERROR></div>
31                 </TMPL_IF>
32                 <noscript>
33                 </li>
34                 </ul>
35                 </noscript>
36         </fieldset>
37 </form>