2015-02-09 09:08:33 +02:00
|
|
|
<form action="/recover" method="POST">
|
2015-02-21 21:07:32 +02:00
|
|
|
<input type="text" name="username" placeholder="Username" value="{{.username}}" /><br />
|
|
|
|
<input type="text" name="confirmUsername" placeholder="Confirm Username" value="{{.confirmUsername}}" /><br />
|
|
|
|
<button type="submit">Recover</button>
|
|
|
|
<a href="/login">Cancel</a>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <form action="/recover" method="POST">
|
2015-02-09 09:08:33 +02:00
|
|
|
{{$usernameErrs := .ErrMap.username}}
|
|
|
|
<div class="form-group{{if $usernameErrs}} has-error{{end}}">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
|
|
|
<input class="form-control" type="text" name="username" placeholder="Username" value="{{.Username}}" />
|
|
|
|
</div>
|
|
|
|
{{range $err := $usernameErrs}}
|
|
|
|
<span class="help-block">{{print $err}}</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{$confirmUsernameErrs := .ErrMap.confirmUsername}}
|
|
|
|
<div class="form-group{{if $confirmUsernameErrs}} has-error{{end}}">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-user"></i></span>
|
|
|
|
<input class="form-control" type="text" name="confirmUsername" placeholder="Confirm Username" value="{{.ConfirmUsername}}" />
|
|
|
|
</div>
|
|
|
|
{{range $err := $confirmUsernameErrs}}
|
|
|
|
<span class="help-block">{{print $err}}</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn btn-primary btn-block" type="submit">Recover</button>
|
|
|
|
<a class="btn btn-link btn-block" type="submit" href="/login">Cancel</a>
|
2015-02-16 07:23:37 +02:00
|
|
|
<input type="hidden" name="{{.XSRFName}}" value="{{.XSRFToken}}" />
|
2015-02-21 21:07:32 +02:00
|
|
|
</form> -->
|