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.

55 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. {{if .IsSuccess}}<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}}
  11. <p>Your Email will be public and used for Account related notifications and any web based operations made via the web.</p>
  12. <div class="form-group">
  13. <label class="col-md-2 control-label">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}}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label>
  20. <div class="col-md-8">
  21. <input name="email" class="form-control" placeholder="Type your e-mail address" required="required" value="{{.SignedUser.Email}}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-md-2 control-label">Website</label>
  26. <div class="col-md-8">
  27. <input name="website" class="form-control" placeholder="Type your website URL" value="{{.SignedUser.Website}}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-md-2 control-label">Location</label>
  32. <div class="col-md-8">
  33. <input name="location" class="form-control" placeholder="Type your current location" value="{{.SignedUser.Location}}">
  34. </div>
  35. </div>
  36. <div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
  37. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  38. <div class="col-md-8">
  39. <input name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.SignedUser.AvatarEmail}}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <div class="col-md-offset-2 col-md-8">
  44. <button type="submit" class="btn btn-primary">Update Profile</button>
  45. </div>
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. </div>
  51. {{template "base/footer" .}}