1 <script type="text/javascript" src="ikiwiki/jquery.min.js"></script>
2 <script type="text/javascript" src="ikiwiki/login-selector/login-selector.js"></script>
3 <script type="text/javascript">
4 $(document).ready(function() {
8 <TMPL_IF LOGIN_SELECTOR_OPENID>'openid': 1,</TMPL_IF>
9 <TMPL_IF LOGIN_SELECTOR_EMAILAUTH>'email': 1,</TMPL_IF>
11 '<TMPL_IF OTHERFORM>otherform</TMPL_IF>',
12 '<TMPL_VAR OTHERFORM_LABEL>'
17 <form action="<TMPL_VAR CGIURL>" method="get" id="login_selector_form">
20 $('fieldset').append("<legend>Select login method</legend>");
23 <input type="hidden" name="do" value="signin" />
24 <input type="hidden" name="action" value="verify" />
25 <div id="login_choice">
26 <div id="login_btns"></div>
29 <div id="login_input_area">
30 <TMPL_IF LOGIN_SELECTOR_OPENID>
32 <h3>OpenId login:</h3>
33 <label for="openid_identifier" class="block">Enter your OpenID:</label>
34 <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR ESCAPE=HTML OPENID_URL>"/>
35 <input id="openid_submit" type="submit" value="Login"/>
38 <TMPL_IF LOGIN_SELECTOR_EMAILAUTH>
41 <label for="email_address" class="block">Enter your email address:</label>
42 <input id="email_address" name="Email_entry" type="text" value="<TMPL_VAR ESCAPE=HTML EMAIL_ADDRESS>"/>
43 <input id="email_submit" type="submit" value="Login"/>
49 <div class="error"><TMPL_VAR LOGIN_ERROR></div>
61 <h3><TMPL_VAR OTHERFORM_LABEL> login:</h3>