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.

47 lines
2.1 KiB

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