]> sipb.mit.edu Git - ikiwiki.git/blob - templates/openid-selector.tmpl
moved non-openid signin form into same page as openid selector; show/hide as buttons...
[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_IF NONOPENIDFORM>nonopenidform</TMPL_IF>');
6 });
7 </script>
8
9 <noscript>
10 <h2>OpenID:</h2>
11 </noscript>
12
13 <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
14         <fieldset>
15                 <legend>Select your account provider</legend>
16                 
17                 <input type="hidden" name="do" value="signin" />
18                 <input type="hidden" name="action" value="verify" />
19                 <div id="openid_choice">
20                         <div id="openid_btns"></div>
21                 </div>
22                 <div id="openid_input_area">
23                         <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
24                         <input id="openid_submit" type="submit" value="Login"/>
25                 </div>
26                 <TMPL_IF OPENID_ERROR>
27                 <div class="error"><TMPL_VAR OPENID_ERROR></div>
28                 </TMPL_IF>
29         </fieldset>
30 </form>
31
32 <div id="nonopenidform">
33 <TMPL_IF NONOPENIDFORM>
34 <br />
35 <noscript>
36 <h2>Local Account:</h2>
37 </noscript>
38 </TMPL_IF>
39 <TMPL_VAR NONOPENIDFORM>
40 </div>