You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div class="container" id="gogs-body" data-page="user-signin">
  4. <form action="/user/login" method="post" class="form-horizontal gogs-card" id="gogs-login-card">
  5. {{.CsrfTokenHtml}}
  6. <h3>Log in</h3>
  7. <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div>
  8. <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
  9. <label class="col-md-4 control-label">Username: </label>
  10. <div class="col-md-6">
  11. <input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required">
  12. </div>
  13. </div>
  14. <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
  15. <label class="col-md-4 control-label">Password: </label>
  16. <div class="col-md-6">
  17. <input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <div class="col-md-6 col-md-offset-4">
  22. <div class="checkbox">
  23. <label>
  24. <input type="checkbox" name="remember" {{if .remember}}checked{{end}}>
  25. <strong>Remember me</strong>
  26. </label>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <div class="col-md-offset-4 col-md-6">
  32. <button type="submit" class="btn btn-lg btn-primary">Log In</button>
  33. <a href="/forget-password/">Forgot your password?</a>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <div class="col-md-offset-4 col-md-6">
  38. <a href="/user/sign_up">Need an account? Sign up now.</a>
  39. </div>
  40. </div>
  41. <div class="form-group text-center" id="gogs-social-login">
  42. <a class="btn btn-danger btn-lg">Register new account</a>
  43. </div>
  44. </form>
  45. </div>
  46. {{template "base/footer" .}}