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. <input type="hidden" name="do" value="signin" />
  17. <input type="hidden" name="action" value="verify" />
  18. <div id="openid_choice">
  19. <div id="openid_btns"></div>
  20. </div>
  21. <div id="openid_input_area">
  22. <label for="openid_identifier" class="block">Angiv din OpenID:</label>
  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. <div id="nonopenidform">
  32. <TMPL_IF NONOPENIDFORM>
  33. <br />
  34. <noscript>
  35. <h2>Andre:</h2>
  36. </noscript>
  37. </TMPL_IF>
  38. <TMPL_VAR NONOPENIDFORM>
  39. </div>