diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-13 16:44:43 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-13 16:50:44 -0400 |
commit | ab4d9a54677c2c17b186048ba5d86986a161bcef (patch) | |
tree | f7a3014c96fef0062e33cf136c20efbd0e85ff51 /templates | |
parent | 370261e715ab53e9630e2c209e478c4b87bf14c6 (diff) | |
download | ikiwiki-ab4d9a54677c2c17b186048ba5d86986a161bcef.tar ikiwiki-ab4d9a54677c2c17b186048ba5d86986a161bcef.tar.gz |
generalized the openid selector to a login selector
This includes some CSS changes to names of elements.
Also, added Email login button (doesn't work yet of course),
and brought back the small openid login buttons. Demoted yahoo and verison
to small buttons. This makes the big buttons be the main login types, and
the small buttons be provider-specific helpers.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/openid-selector.tmpl | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl index 95ba086fe..03eb5d779 100644 --- a/templates/openid-selector.tmpl +++ b/templates/openid-selector.tmpl @@ -2,42 +2,42 @@ <script type="text/javascript" src="ikiwiki/openid/openid-jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { - openid.init('openid_identifier','<TMPL_IF NONOPENIDFORM>nonopenidform</TMPL_IF>', '<TMPL_VAR NONOPENIDFORM_LABEL>'); + selector.init('openid_identifier','<TMPL_IF OTHERFORM>otherform</TMPL_IF>', '<TMPL_VAR OTHERFORM_LABEL>'); }); </script> <noscript> -<h2>OpenID:</h2> +<h2>Login:</h2> </noscript> -<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form"> - <fieldset> +<form action="<TMPL_VAR CGIURL>" method="get" id="login_selector_form"> + <div> <script> $('fieldset').append("<legend>Select login method</legend>"); </script> <input type="hidden" name="do" value="signin" /> <input type="hidden" name="action" value="verify" /> - <div id="openid_choice"> - <div id="openid_btns"></div> + <div id="login_choice"> + <div id="login_btns"></div> </div> - <div id="openid_input_area"> + <div id="login_input_area"> <label for="openid_identifier" class="block">Enter your OpenID:</label> <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR ESCAPE=HTML OPENID_URL>"/> <input id="openid_submit" type="submit" value="Login"/> </div> - <TMPL_IF OPENID_ERROR> - <div class="error"><TMPL_VAR OPENID_ERROR></div> + <TMPL_IF LOGIN_ERROR> + <div class="error"><TMPL_VAR LOGIN_ERROR></div> </TMPL_IF> - </fieldset> + </div> </form> -<div id="nonopenidform"> -<TMPL_IF NONOPENIDFORM> +<div id="otherform"> +<TMPL_IF OTHERFORM> <br /> <noscript> -<h2><TMPL_VAR NONOPENIDFORM_LABEL>:</h2> +<h2><TMPL_VAR OTHERFORM_LABEL>:</h2> </noscript> </TMPL_IF> -<TMPL_VAR NONOPENIDFORM> +<TMPL_VAR OTHERFORM> </div> |