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.0 KiB

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 id="body" class="container" data-page="user">
  4. {{template "user/setting_nav" .}}
  5. <div id="user-setting-container" class="col-md-9">
  6. <div id="setting-pwd">
  7. <h4>Account Profile</h4>
  8. <form class="form-horizontal" id="password-form" method="post" action="/user/setting">
  9. {{.CsrfTokenHtml}}
  10. {{template "base/alert" .}}
  11. <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>
  12. <div class="form-group">
  13. <label class="col-md-2 control-label" for="user-setting-username">Username<strong class="text-danger">*</strong></label>
  14. <div class="col-md-8">
  15. <input name="username" class="form-control" placeholder="Type your user name" required="required" value="{{.SignedUser.Name}}" title="{{.SignedUser.Name}}" id="user-setting-username">
  16. <p class="help-block hidden"><span class="text-danger">Cautious : </span>your username is changing !</p>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label>
  21. <div class="col-md-8">
  22. <input name="email" class="form-control" placeholder="Type your e-mail address" required="required" value="{{.SignedUser.Email}}">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="col-md-2 control-label">Website</label>
  27. <div class="col-md-8">
  28. <input name="website" class="form-control" placeholder="Type your website URL" value="{{.SignedUser.Website}}">
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="col-md-2 control-label">Location</label>
  33. <div class="col-md-8">
  34. <input name="location" class="form-control" placeholder="Type your current location" value="{{.SignedUser.Location}}">
  35. </div>
  36. </div>
  37. <div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
  38. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  39. <div class="col-md-8">
  40. <input name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.SignedUser.AvatarEmail}}">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <div class="col-md-offset-2 col-md-8">
  45. <button type="submit" class="btn btn-primary">Update Profile</button>
  46. </div>
  47. </div>
  48. </form>
  49. </div>
  50. </div>
  51. </div>
  52. {{template "base/footer" .}}