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.

57 lines
3.1 KiB

10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container" data-page="user">
  4. <div id="gogs-user-setting-nav" class="col-md-3">
  5. <h4>Account Setting</h4>
  6. <ul class="list-group">
  7. <li class="list-group-item list-group-item-success"><a href="/user/setting">Account Profile</a></li>
  8. <li class="list-group-item"><a href="/user/setting/password">Password</a></li>
  9. <li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li>
  10. <li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li>
  11. <li class="list-group-item"><a href="/user/setting/security">Security</a></li>
  12. <li class="list-group-item"><a href="/user/delete">Delete Account</a></li>
  13. </ul>
  14. </div>
  15. <div id="gogs-user-setting-container" class="col-md-9">
  16. <div id="gogs-setting-pwd">
  17. <h4>Account Profile</h4>
  18. <form class="form-horizontal" id="gogs-password-form" method="post" action="/user/setting">{{if .IsSuccess}}
  19. <p class="alert alert-success">Your profile has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
  20. <p>Your Email will be public and used for Account related notifications and any web based operations made via the web.</p>
  21. <div class="form-group">
  22. <label class="col-md-2 control-label">Email</label>
  23. <div class="col-md-8">
  24. <input type="text" name="email" class="form-control" placeholder="Type your e-mail address" value="{{.Owner.Email}}">
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-md-2 control-label">Website</label>
  29. <div class="col-md-8">
  30. <input type="text" name="website" class="form-control" placeholder="Type your website URL" value="{{.Owner.Website}}">
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-md-2 control-label">Location</label>
  35. <div class="col-md-8">
  36. <input type="text" name="location" class="form-control" placeholder="Type your current location" value="{{.Owner.Location}}">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  41. <div class="col-md-8">
  42. <input type="text" name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.Owner.AvatarEmail}}">
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <div class="col-md-offset-2 col-md-8">
  47. <button type="submit" class="btn btn-primary">Update Profile</button>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. {{template "base/footer" .}}