2015-08-25 22:12:43 +05:30
|
|
|
{{ template "header.html" }}
|
|
|
|
|
|
|
|
<div class="panel">
|
|
|
|
<h2 class="heading">Create Your Account</h2>
|
|
|
|
|
|
|
|
{{ if .Error }}
|
|
|
|
<div class="error-box">{{ .Message }}</div>
|
|
|
|
{{ else }}
|
|
|
|
|
2015-08-18 05:57:27 +05:30
|
|
|
<form id="registerForm" method="POST" action="/register">
|
|
|
|
|
2015-08-25 22:12:43 +05:30
|
|
|
<div class="form-row">
|
|
|
|
<div class="input-desc">
|
|
|
|
<label for="email">Email Address</label>
|
|
|
|
</div>
|
|
|
|
<input id="email" class="input-box" type="text" name="email" required placeholder="email" value="{{.Email}}" autofocus />
|
|
|
|
{{ range $fe := .FormErrors }}
|
|
|
|
{{ if eq $fe.Field "email" }}
|
|
|
|
<div class="error-box-field">{{ $fe.Error }}</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2015-08-18 05:57:27 +05:30
|
|
|
{{ if .Local }}
|
2015-08-25 22:12:43 +05:30
|
|
|
<div class="form-row">
|
|
|
|
<div class="input-desc">
|
|
|
|
<label for="password">Password</label>
|
|
|
|
</div>
|
|
|
|
<input minlength="6" required id="password" name="password" type="password" class="input-box" value="{{.Password}}"/>
|
|
|
|
{{ range $fe := .FormErrors }}
|
|
|
|
{{ if eq $fe.Field "password" }}
|
|
|
|
<div class="error-box-field">{{ $fe.Error }}</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2015-08-18 05:57:27 +05:30
|
|
|
{{ end }}
|
|
|
|
|
2015-08-25 22:12:43 +05:30
|
|
|
<button type="submit" class="btn btn-primary">Create Account</button>
|
2015-08-18 05:57:27 +05:30
|
|
|
<input type="hidden" name="code" value="{{.Code}}"/>
|
|
|
|
<input type="hidden" name="validate" value="1"/>
|
|
|
|
</form>
|
2015-08-25 22:12:43 +05:30
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "footer.html" }}
|