aboutsummaryrefslogtreecommitdiffstats
path: root/templates/account.html
blob: 9b7e3b1cc38b68362b24137b72c5f05984be27d3 (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
{{ template "HEADER" . }}
{{ if .ActionLogin }}

<br><br><br><br>
<div class="container">
	<div class="row">
		<div class="span6 offset3 well">
			<legend>Please Sign In</legend>
            {{ if .Problem }}
            <div class="alert alert-error">
                <strong>Problem!</strong> {{ .Problem }}
            </div>
            {{ end }}
			<form method="POST" action="/account/login/" id="login-form">
              <input id="assertion-field" type="hidden" name="assertion" value="">
              <input type="text" id="UserName" class="span6" name="UserName" placeholder="Username">
			</form>    
            <a href="javascript:login()"><button class="btn btn-info btn-block">Sign In With Mozilla Persona</button></a>
		</div>
	</div>
</div>

{{ else }}
{{if .ActionLogout }}
<h1>logged out, goodbye!</h1>
{{ else }}{{if .ActionNewUser }}
<h1>hello new human!</h1>
{{end}}{{end}}{{end}}
{{ template "FOOTER" . }}