2014-03-02 07:31:06 +00:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-17 07:17:44 +00:00
|
|
|
<div class="container" id="gogs-body" data-page="user-signin">
|
2014-03-04 00:03:08 +00:00
|
|
|
<form action="/user/login" method="post" class="form-horizontal gogs-card" id="gogs-login-card">
|
2014-03-06 16:42:14 +00:00
|
|
|
<h3>Log in</h3>
|
|
|
|
<div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div>
|
|
|
|
<div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
|
|
|
|
<label class="col-md-4 control-label">Username: </label>
|
2014-03-02 07:31:06 +00:00
|
|
|
<div class="col-md-6">
|
2014-03-06 16:42:14 +00:00
|
|
|
<input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required">
|
2014-03-02 07:31:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 16:42:14 +00:00
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
|
2014-03-02 07:31:06 +00:00
|
|
|
<label class="col-md-4 control-label">Password: </label>
|
|
|
|
<div class="col-md-6">
|
2014-03-03 12:35:44 +00:00
|
|
|
<input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
|
2014-03-02 07:31:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 16:42:14 +00:00
|
|
|
|
2014-03-02 07:31:06 +00: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>
|
|
|
|
<a href="/forget-password/">Forgot your password?</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 16:42:14 +00:00
|
|
|
|
2014-03-02 07:31:06 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-4 col-md-6">
|
2014-03-06 16:42:14 +00:00
|
|
|
<a href="/user/sign_up">Need an account? Sign up now.</a>
|
2014-03-02 07:31:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-06 16:42:14 +00:00
|
|
|
|
2014-03-02 07:31:06 +00:00
|
|
|
<div class="form-group text-center" id="gogs-social-login">
|
2014-03-21 05:09:22 +00:00
|
|
|
<a class="btn btn-danger btn-lg">Register new account</a>
|
2014-03-02 07:31:06 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|