]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - templates/openid-selector.tmpl
Merge remote-tracking branch 'smcv/ready/no-trails-if-dynamic'
[git.ikiwiki.info.git] / templates / openid-selector.tmpl
index 393479865f4a34c891e67099b7a0bd3d92e282e8..b6be2720c99e4593d8fede439675916817b37aa5 100644 (file)
@@ -1,24 +1,28 @@
-<script type="text/javascript" src="ikiwiki/openid/jquery.js"></script>
+<script type="text/javascript" src="ikiwiki/jquery.min.js"></script>
 <script type="text/javascript" src="ikiwiki/openid/openid-jquery.js"></script>
 <script type="text/javascript">
 $(document).ready(function() {
-       openid.init('openid_identifier');
+       openid.init('openid_identifier','<TMPL_IF NONOPENIDFORM>nonopenidform</TMPL_IF>');
 });
 </script>
-       
+
+<noscript>
+<h2>OpenID:</h2>
+</noscript>
+
 <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
-       <input type="hidden" name="do" value="signin" />
-       <input type="hidden" name="action" value="verify" />
        <fieldset>
-               <legend><TMPL_VAR LOGINLABEL></legend>
+               <script>
+               $('fieldset').append("<legend>Select your account provider</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>
-                       <TMPL_IF NONOPENIDURL>
-                       <a href="<TMPL_VAR NONOPENIDURL>">local account</a>
-                       </TMPL_IF>
+                       <div id="openid_btns"></div>
                </div>
                <div id="openid_input_area">
+                       <label for="openid_identifier" class="block">Enter your OpenID:</label>
                        <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
                        <input id="openid_submit" type="submit" value="Login"/>
                </div>
@@ -27,3 +31,13 @@ $(document).ready(function() {
                </TMPL_IF>
        </fieldset>
 </form>
+
+<div id="nonopenidform">
+<TMPL_IF NONOPENIDFORM>
+<br />
+<noscript>
+<h2>Other:</h2>
+</noscript>
+</TMPL_IF>
+<TMPL_VAR NONOPENIDFORM>
+</div>