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.

48 lines
2.5 KiB

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">Email</label>
  14. <div class="col-md-8">
  15. <input type="text" name="email" class="form-control" placeholder="Type your e-mail address" value="{{.Owner.Email}}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-md-2 control-label">Website</label>
  20. <div class="col-md-8">
  21. <input type="text" name="website" class="form-control" placeholder="Type your website URL" value="{{.Owner.Website}}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-md-2 control-label">Location</label>
  26. <div class="col-md-8">
  27. <input type="text" name="location" class="form-control" placeholder="Type your current location" value="{{.Owner.Location}}">
  28. </div>
  29. </div>
  30. <div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
  31. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  32. <div class="col-md-8">
  33. <input type="text" name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.Owner.AvatarEmail}}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <div class="col-md-offset-2 col-md-8">
  38. <button type="submit" class="btn btn-primary">Update Profile</button>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}