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.

47 lines
2.5 KiB

10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container" data-page="user">
  4. {{template "user/setting_nav" .}}
  5. <div id="gogs-user-setting-container" class="col-md-9">
  6. <div id="gogs-setting-pwd">
  7. <h4>Account Profile</h4>
  8. <form class="form-horizontal" id="gogs-password-form" method="post" action="/user/setting">{{if .IsSuccess}}
  9. <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}}
  10. <p>Your Email will be public and used for Account related notifications and any web based operations made via the web.</p>
  11. <div class="form-group">
  12. <label class="col-md-2 control-label">Email</label>
  13. <div class="col-md-8">
  14. <input type="text" name="email" class="form-control" placeholder="Type your e-mail address" value="{{.Owner.Email}}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-md-2 control-label">Website</label>
  19. <div class="col-md-8">
  20. <input type="text" name="website" class="form-control" placeholder="Type your website URL" value="{{.Owner.Website}}">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-md-2 control-label">Location</label>
  25. <div class="col-md-8">
  26. <input type="text" name="location" class="form-control" placeholder="Type your current location" value="{{.Owner.Location}}">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
  31. <div class="col-md-8">
  32. <input type="text" name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.Owner.AvatarEmail}}">
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <div class="col-md-offset-2 col-md-8">
  37. <button type="submit" class="btn btn-primary">Update Profile</button>
  38. </div>
  39. </div>
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "base/footer" .}}