pretty openid login
[ikiwiki] / 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');
6 });
7 </script>
8         
9 <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
10         <input type="hidden" name="do" value="signin" />
11         <input type="hidden" name="action" value="verify" />
12         <fieldset>
13                 <legend><TMPL_VAR LOGINLABEL></legend>
14                 <div id="openid_choice">
15                         <div id="openid_btns">
16                         </div>
17                         <TMPL_IF NONOPENIDURL>
18                         <a href="<TMPL_VAR NONOPENIDURL>">local account</a>
19                         </TMPL_IF>
20                 </div>
21                 <div id="openid_input_area">
22                         <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
23                         <input id="openid_submit" type="submit" value="Login"/>
24                 </div>
25                 <TMPL_IF OPENID_ERROR>
26                 <div class="error"><TMPL_VAR OPENID_ERROR></div>
27                 </TMPL_IF>
28         </fieldset>
29 </form>