2014-03-02 08:31:06 +01:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-25 11:44:37 +01:00
|
|
|
<div class="container" id="body" data-page="user-signin">
|
|
|
|
<form action="/user/login" method="post" class="form-horizontal card" id="login-card">
|
2014-03-22 18:44:02 +01:00
|
|
|
{{.CsrfTokenHtml}}
|
2014-04-12 03:42:09 +02:00
|
|
|
<h3>Log in
|
|
|
|
{{if .OauthEnabled}}
|
|
|
|
<small class="pull-right">social login:
|
|
|
|
{{if .OauthGitHubEnabled}}
|
|
|
|
<a href="/user/login/github?next=/user/sign_up"><i class="fa fa-github-square fa-2x"></i></a>
|
|
|
|
{{end}}
|
|
|
|
</small>
|
|
|
|
{{end}}
|
|
|
|
</h3>
|
2014-04-10 22:36:50 +02:00
|
|
|
{{template "base/alert" .}}
|
2014-03-06 17:42:14 +01:00
|
|
|
<div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
|
|
|
|
<label class="col-md-4 control-label">Username: </label>
|
2014-03-02 08:31:06 +01:00
|
|
|
<div class="col-md-6">
|
2014-03-06 17:42:14 +01:00
|
|
|
<input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required">
|
2014-03-02 08:31:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 17:42:14 +01:00
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
|
2014-03-02 08:31:06 +01:00
|
|
|
<label class="col-md-4 control-label">Password: </label>
|
|
|
|
<div class="col-md-6">
|
2014-03-03 13:35:44 +01:00
|
|
|
<input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
|
2014-03-02 08:31:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 17:42:14 +01:00
|
|
|
|
2014-03-22 21:40:09 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-6 col-md-offset-4">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="remember" {{if .remember}}checked{{end}}>
|
|
|
|
<strong>Remember me</strong>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-02 08:31:06 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-4 col-md-6">
|
|
|
|
<button type="submit" class="btn btn-lg btn-primary">Log In</button>
|
2014-04-05 18:32:34 +02:00
|
|
|
<a href="/user/forget_password/">Forgot your password?</a>
|
2014-03-02 08:31:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 17:42:14 +01:00
|
|
|
|
2014-03-02 08:31:06 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-4 col-md-6">
|
2014-03-06 17:42:14 +01:00
|
|
|
<a href="/user/sign_up">Need an account? Sign up now.</a>
|
2014-03-02 08:31:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 17:42:14 +01:00
|
|
|
|
2014-04-12 03:42:09 +02:00
|
|
|
<!-- {{if .OauthEnabled}}
|
2014-03-25 11:44:37 +01:00
|
|
|
<div class="form-group text-center" id="social-login">
|
2014-04-07 18:56:40 +02:00
|
|
|
<h4>Log In with Social Accounts</h4>
|
2014-04-11 19:01:30 +02:00
|
|
|
{{if .OauthGitHubEnabled}}<a href="/user/login/github?next=/user/sign_up"><i class="fa fa-github-square fa-3x"></i></a>{{end}}
|
2014-03-02 08:31:06 +01:00
|
|
|
</div>
|
2014-04-12 03:42:09 +02:00
|
|
|
{{end}} -->
|
2014-03-02 08:31:06 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2014-04-11 19:01:30 +02:00
|
|
|
{{template "base/footer" .}}
|