summaryrefslogtreecommitdiffstats
path: root/templates/openid-selector.tmpl
blob: 84b7ab9b631d90ddcaf681655ca05513d5fdc39a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script type="text/javascript" src="/ikiwiki/openid/jquery.js"></script>
<script type="text/javascript" src="//media.proteanos.com/scripts/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>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>
		</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>
		<TMPL_IF OPENID_ERROR>
		<div class="error"><TMPL_VAR OPENID_ERROR></div>
		</TMPL_IF>
	</fieldset>
</form>

<div id="nonopenidform">
<TMPL_IF NONOPENIDFORM>
<noscript>
<h2>Other:</h2>
</noscript>
</TMPL_IF>
<TMPL_VAR NONOPENIDFORM>
</div>