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.

38 lines
1.7 KiB

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. <h3>Log in</h3>
  6. <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div>
  7. <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
  8. <label class="col-md-4 control-label">Username: </label>
  9. <div class="col-md-6">
  10. <input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required">
  11. </div>
  12. </div>
  13. <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
  14. <label class="col-md-4 control-label">Password: </label>
  15. <div class="col-md-6">
  16. <input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <div class="col-md-offset-4 col-md-6">
  21. <button type="submit" class="btn btn-lg btn-primary">Log In</button>
  22. <a href="/forget-password/">Forgot your password?</a>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <div class="col-md-offset-4 col-md-6">
  27. <a href="/user/sign_up">Need an account? Sign up now.</a>
  28. </div>
  29. </div>
  30. <div class="form-group text-center" id="gogs-social-login">
  31. <a class="btn btn-default btn-lg">Social Login</a>
  32. </div>
  33. </form>
  34. </div>
  35. {{template "base/footer" .}}