profile.tmpl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{template "base/head" .}}
  2. <div class="user settings profile">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/settings/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "settings.public_profile"}}
  10. </h4>
  11. <div class="ui attached segment">
  12. <p>{{.i18n.Tr "settings.profile_desc"}}</p>
  13. <form class="ui form" action="{{.Link}}" method="post">
  14. {{.CSRFTokenHTML}}
  15. <div class="required field {{if .Err_Name}}error{{end}}">
  16. <label for="username">{{.i18n.Tr "username"}}<span class="text red {{if eq .name .origin_name}}hide{{end}}" id="name-change-prompt"> {{.i18n.Tr "settings.change_username_prompt"}}</span></label>
  17. <input id="username" name="name" value="{{.name}}" data-name="{{.origin_name}}" autofocus required {{if not .LoggedUser.IsLocal}}readonly{{end}}>
  18. {{if not .LoggedUser.IsLocal}}
  19. <p class="help text blue">{{$.i18n.Tr "settings.password_username_disabled"}}</p>
  20. {{end}}
  21. </div>
  22. <div class="field {{if .Err_FullName}}error{{end}}">
  23. <label for="full_name">{{.i18n.Tr "settings.full_name"}}</label>
  24. <input id="full_name" name="full_name" value="{{.full_name}}">
  25. </div>
  26. <div class="required field {{if .Err_Email}}error{{end}}">
  27. <label for="email">{{.i18n.Tr "email"}}</label>
  28. <input id="email" name="email" value="{{.email}}" required>
  29. </div>
  30. <div class="field {{if .Err_Website}}error{{end}}">
  31. <label for="website">{{.i18n.Tr "settings.website"}}</label>
  32. <input id="website" name="website" type="url" value="{{.website}}">
  33. </div>
  34. <div class="field">
  35. <label for="location">{{.i18n.Tr "settings.location"}}</label>
  36. <input id="location" name="location" value="{{.location}}">
  37. </div>
  38. <div class="field">
  39. <button class="ui green button">{{$.i18n.Tr "settings.update_profile"}}</button>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "base/footer" .}}