summaryrefslogtreecommitdiff
path: root/openid-selector.tmpl
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-07-20 22:37:57 +0200
committerJonas Smedegaard <dr@jones.dk>2010-07-20 22:37:57 +0200
commitea16b1e537ffb534d11c7d7dac262259fd03f601 (patch)
treeb0891d604ea2ce86bd19a482072e4c902441700f /openid-selector.tmpl
parentdef09d5f933d4867a3f1a4e1382ca0c32e429ef7 (diff)
parentee62a82c4be0125da6b4758e43e231a3c28c857f (diff)
Merge branch 'master-da' into scs-da
Conflicts (manually resolved): misc.tmpl page.tmpl
Diffstat (limited to 'openid-selector.tmpl')
-rw-r--r--openid-selector.tmpl43
1 files changed, 43 insertions, 0 deletions
diff --git a/openid-selector.tmpl b/openid-selector.tmpl
new file mode 100644
index 0000000..0b97bf9
--- /dev/null
+++ b/openid-selector.tmpl
@@ -0,0 +1,43 @@
+<script type="text/javascript" src="ikiwiki/openid/jquery.js"></script>
+<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>');
+});
+</script>
+
+<noscript>
+<h2>OpenID:</h2>
+</noscript>
+
+<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
+ <fieldset>
+ <script>
+ $('fieldset').append("<legend>Vælg din konto udbyder</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>
+ <div id="openid_input_area">
+ <label for="openid_identifier" class="block">Angiv din 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>
+ <TMPL_IF OPENID_ERROR>
+ <div class="error"><TMPL_VAR OPENID_ERROR></div>
+ </TMPL_IF>
+ </fieldset>
+</form>
+
+<div id="nonopenidform">
+<TMPL_IF NONOPENIDFORM>
+<br />
+<noscript>
+<h2>Andre:</h2>
+</noscript>
+</TMPL_IF>
+<TMPL_VAR NONOPENIDFORM>
+</div>