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.

56 lines
3.8 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. {{template "org/base/header" .}}
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="org-setting" class="container clear">
  6. {{template "org/settings/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div id="user-profile-setting-content" class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "org.settings.options"}}</strong>
  14. </div>
  15. <form class="form form-align panel-body" id="org-setting-form" action="/org/{{.Org.LowerName}}/settings" method="post">
  16. {{.CsrfTokenHtml}}
  17. <input type="hidden" name="action" value="update">
  18. <div class="field">
  19. <label class="req" for="orgname">{{.i18n.Tr "username"}}</label>
  20. <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="orgname" name="uname" value="{{.Org.Name}}" data-orgname="{{.Org.Name}}" required />
  21. </div>
  22. <div class="field">
  23. <label for="full-name">{{.i18n.Tr "org.settings.full_name"}}</label>
  24. <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" value="{{.Org.FullName}}" />
  25. </div>
  26. <div class="field">
  27. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  28. <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.Org.Email}}" required />
  29. </div>
  30. <div class="field clear">
  31. <label class="left" for="desc">{{.i18n.Tr "org.org_desc"}}</label>
  32. <textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc">{{.Org.Description}}</textarea>
  33. </div>
  34. <div class="field">
  35. <label for="website">{{.i18n.Tr "org.settings.website"}}</label>
  36. <input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.Org.Website}}" />
  37. </div>
  38. <div class="field">
  39. <label for="location">{{.i18n.Tr "org.settings.location"}}</label>
  40. <input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.Org.Location}}" />
  41. </div>
  42. <div class="field">
  43. <label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
  44. <input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.Org.AvatarEmail}}" />
  45. </div>
  46. <div class="field">
  47. <span class="form-label"></span>
  48. <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "org.settings.update_settings"}}</button>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. {{template "ng/base/footer" .}}