summaryrefslogtreecommitdiff
path: root/openid-selector.tmpl
blob: 92fc5c44f8c3e97068ceffa1db97276c08ae43f4 (plain)
  1. <script type="text/javascript" src="ikiwiki/jquery.min.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. <noscript>
  9. <h2>OpenID:</h2>
  10. </noscript>
  11. <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
  12.     <fieldset>
  13.         <script>
  14.         $('fieldset').append("<legend>Vælg din konto udbyder</legend>");
  15.         </script>
  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.             <label for="openid_identifier" class="block">Angiv din OpenID:</label>
  24.             <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
  25.             <input id="openid_submit" type="submit" value="Login"/>
  26.         </div>
  27.         <TMPL_IF OPENID_ERROR>
  28.         <div class="error"><TMPL_VAR OPENID_ERROR></div>
  29.         </TMPL_IF>
  30.     </fieldset>
  31. </form>
  32. <div id="nonopenidform">
  33. <TMPL_IF NONOPENIDFORM>
  34. <br />
  35. <noscript>
  36. <h2>Andre:</h2>
  37. </noscript>
  38. </TMPL_IF>
  39. <TMPL_VAR NONOPENIDFORM>
  40. </div>