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.

52 lines
2.2 KiB

10 years ago
10 years ago
10 years ago
10 years ago
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-signup">
  4. <form action="/user/sign_up" method="post" class="form-horizontal gogs-card" id="gogs-login-card">
  5. {{.CsrfTokenHtml}}
  6. {{if .DisenableRegisteration}}
  7. Sorry, registeration has been disenabled, you can only get account from administrator.
  8. {{else}}
  9. <h3>Sign Up</h3>
  10. <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div>
  11. <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
  12. <label class="col-md-4 control-label">Username: </label>
  13. <div class="col-md-6">
  14. <input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required">
  15. </div>
  16. </div>
  17. <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
  18. <label class="col-md-4 control-label">Email: </label>
  19. <div class="col-md-6">
  20. <input name="email" class="form-control" placeholder="Type your e-mail address" value="{{.email}}" required="required" title="Email is not valid">
  21. </div>
  22. </div>
  23. <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}">
  24. <label class="col-md-4 control-label">Password: </label>
  25. <div class="col-md-6">
  26. <input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required" title="Password must contain at least 6 characters">
  27. </div>
  28. </div>
  29. <div class="form-group {{if .Err_RetypePasswd}}has-error has-feedback{{end}}">
  30. <label class="col-md-4 control-label">Re-type: </label>
  31. <div class="col-md-6">
  32. <input name="retypepasswd" type="password" class="form-control" placeholder="Re-type your password" required="required" title="Re-type Password must be same to Password">
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <div class="col-md-offset-4 col-md-6">
  37. <button type="submit" class="btn btn-lg btn-primary">Create an account</button>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <div class="col-md-offset-4 col-md-6">
  42. <a href="/user/login">Already have an account? Sign in now!</a>
  43. </div>
  44. </div>
  45. {{end}}
  46. </form>
  47. </div>
  48. {{template "base/footer" .}}