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.

69 lines
3.9 KiB

10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="user">
  4. {{template "user/setting_nav" .}}
  5. <div id="repo-setting-container" class="col-md-10">
  6. {{template "base/alert" .}}
  7. <div class="panel panel-default">
  8. <div class="panel-heading">
  9. Account Profile
  10. </div>
  11. <div class="panel-body">
  12. <form class="form-horizontal" id="password-form" method="post" action="/user/settings">
  13. {{.CsrfTokenHtml}}
  14. <p>Your Email address is public and will be used for any account related notifications, and any web based operations made via the site.</p>
  15. <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
  16. <label class="col-md-2 control-label" for="user-setting-username">Username<strong class="text-danger">*</strong></label>
  17. <div class="col-md-8">
  18. <input name="username" class="form-control" placeholder="Type your user name" required="required" value="{{.SignedUser.Name}}" title="{{.SignedUser.Name}}" id="user-setting-username">
  19. <p class="help-block hidden"><span class="text-danger">Caution : </span>your username is changing !</p>
  20. </div>
  21. </div>
  22. <div class="form-group {{if .Err_FullName}}has-error has-feedback{{end}}">
  23. <label class="col-md-2 control-label">Full Name</label>
  24. <div class="col-md-8">
  25. <input name="fullname" class="form-control" placeholder="Type your full name" value="{{.SignedUser.FullName}}">
  26. </div>
  27. </div>
  28. <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
  29. <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label>
  30. <div class="col-md-8">
  31. <input name="email" class="form-control" placeholder="Type your e-mail address" required="required" value="{{.SignedUser.Email}}">
  32. </div>
  33. </div>
  34. <div class="form-group {{if .Err_Website}}has-error has-feedback{{end}}">
  35. <label class="col-md-2 control-label">Website</label>
  36. <div class="col-md-8">
  37. <input name="website" class="form-control" placeholder="Type your website URL" value="{{.SignedUser.Website}}">
  38. </div>
  39. </div>
  40. <div class="form-group {{if .Err_Location}}has-error has-feedback{{end}}">
  41. <label class="col-md-2 control-label">Location</label>
  42. <div class="col-md-8">
  43. <input name="location" class="form-control" placeholder="Type your current location" value="{{.SignedUser.Location}}">
  44. </div>
  45. </div>
  46. <div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
  47. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  48. <div class="col-md-8">
  49. <input name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.SignedUser.AvatarEmail}}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <div class="col-md-offset-2 col-md-8">
  54. <button type="submit" class="btn btn-primary">Update Profile</button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. {{template "base/footer" .}}