options.tmpl 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="{{AppSubUrl}}/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="white-popup-block mfp-hide" id="change-orgname-modal">
  23. <h1 class="text-red">{{.i18n.Tr "org.settings.change_orgname"}}</h1>
  24. <p>{{.i18n.Tr "org.settings.change_orgname_desc"}}</p>
  25. <br>
  26. <button class="btn btn-red btn-large btn-radius" id="change-orgname-submit">{{.i18n.Tr "settings.continue"}}</button>
  27. <button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
  28. </div>
  29. <div class="field">
  30. <label for="full-name">{{.i18n.Tr "org.settings.full_name"}}</label>
  31. <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" value="{{.Org.FullName}}" />
  32. </div>
  33. <div class="field">
  34. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  35. <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.Org.Email}}" required />
  36. </div>
  37. <div class="field clear">
  38. <label class="left" for="desc">{{.i18n.Tr "org.org_desc"}}</label>
  39. <textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc">{{.Org.Description}}</textarea>
  40. </div>
  41. <div class="field">
  42. <label for="website">{{.i18n.Tr "org.settings.website"}}</label>
  43. <input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.Org.Website}}" />
  44. </div>
  45. <div class="field">
  46. <label for="location">{{.i18n.Tr "org.settings.location"}}</label>
  47. <input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.Org.Location}}" />
  48. </div>
  49. {{if not DisableGravatar}}
  50. <div class="field">
  51. <label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
  52. <input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.Org.AvatarEmail}}" />
  53. </div>
  54. {{end}}
  55. <div class="field">
  56. <span class="form-label"></span>
  57. <button class="btn btn-green btn-large btn-radius" id="change-orgname-btn" href="#change-orgname-modal">{{.i18n.Tr "org.settings.update_settings"}}</button>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. {{template "ng/base/footer" .}}