diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-07 19:10:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-07 19:10:50 -0400 |
commit | 378c64776856ee1313c030375a921e8acb4ff1ef (patch) | |
tree | 46ac4d04807b83ddaa6d1026e616ef4626261237 /templates | |
parent | 76f6ff5f6b437534f8778abf225e2c4398262489 (diff) |
patch hidden field setting code
Fixes http://code.google.com/p/openid-selector/issues/detail?id=11#c3
Diffstat (limited to 'templates')
-rw-r--r-- | templates/openid-selector.tmpl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl new file mode 100644 index 000000000..76c4051ed --- /dev/null +++ b/templates/openid-selector.tmpl @@ -0,0 +1,30 @@ +<script type="text/javascript" src="ikiwiki/openid-selector/jquery.js"></script> +<script type="text/javascript" src="ikiwiki/openid-selector/openid-jquery.js"></script> +<script type="text/javascript"> +$(document).ready(function() { + openid.init('openid_url'); +}); +</script> + +<TMPL_IF OPENID_ERROR> +<div class="error"><TMPL_VAR OPENID_ERROR></span> +</TMPL_IF> +</div> + +<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form"> + <input type="hidden" name="do" value="signin" /> + <input type="hidden" name="action" value="verify" /> + <div id="openid_choice"> + <p><TMPL_VAR LOGINLABEL>:</p> + <div id="openid_btns"> + </div> + <TMPL_IF NONOPENIDURL> + <a href="<TMPL_VAR NONOPENIDURL>">local account</a> + </TMPL_IF> + </div> + + <span id="openid_input_area"> + <input id="openid_url" name="openid_url" type="text" value="<TMPL_VAR OPENID_URL>"/> + <input id="openid_submit" type="submit" value="Login"/> + </span> +</form> |