本站源代码
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

104 linhas
4.5KB

  1. {{template "base/head" .}}
  2. <div class="organization settings options">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "org/settings/navbar" .}}
  7. <div class="twelve wide column content">
  8. {{template "base/alert" .}}
  9. <h4 class="ui top attached header">
  10. {{.i18n.Tr "org.settings.options"}}
  11. </h4>
  12. <div class="ui attached segment">
  13. <form class="ui form" action="{{.Link}}" method="post">
  14. {{.CsrfTokenHtml}}
  15. <div class="required field {{if .Err_Name}}error{{end}}">
  16. <label for="org_name">{{.i18n.Tr "org.org_name_holder"}}<span class="text red hide" id="org-name-change-prompt"> {{.i18n.Tr "org.settings.change_orgname_prompt"}}</span></label>
  17. <input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required>
  18. </div>
  19. <div class="field {{if .Err_FullName}}error{{end}}">
  20. <label for="full_name">{{.i18n.Tr "org.org_full_name_holder"}}</label>
  21. <input id="full_name" name="full_name" value="{{.Org.FullName}}">
  22. </div>
  23. <div class="field {{if .Err_Description}}error{{end}}">
  24. <label for="description">{{$.i18n.Tr "org.org_desc"}}</label>
  25. <textarea id="description" name="description" rows="2">{{.Org.Description}}</textarea>
  26. </div>
  27. <div class="field {{if .Err_Website}}error{{end}}">
  28. <label for="website">{{.i18n.Tr "org.settings.website"}}</label>
  29. <input id="website" name="website" type="url" value="{{.Org.Website}}">
  30. </div>
  31. <div class="field">
  32. <label for="location">{{.i18n.Tr "org.settings.location"}}</label>
  33. <input id="location" name="location" value="{{.Org.Location}}">
  34. </div>
  35. <div class="ui divider"></div>
  36. <div class="field" id="visibility_box">
  37. <label for="visibility">{{.i18n.Tr "org.settings.visibility"}}</label>
  38. <div class="field">
  39. <div class="ui radio checkbox">
  40. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}/>
  41. <label>{{.i18n.Tr "org.settings.visibility.public"}}</label>
  42. </div>
  43. </div>
  44. <div class="field">
  45. <div class="ui radio checkbox">
  46. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}/>
  47. <label>{{.i18n.Tr "org.settings.visibility.limited"}}</label>
  48. </div>
  49. </div>
  50. <div class="field">
  51. <div class="ui radio checkbox">
  52. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}/>
  53. <label>{{.i18n.Tr "org.settings.visibility.private"}}</label>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="field" id="permission_box">
  58. <label>{{.i18n.Tr "org.settings.permission"}}</label>
  59. <div class="field">
  60. <div class="ui checkbox">
  61. <input class="hidden" type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}/>
  62. <label>{{.i18n.Tr "org.settings.repoadminchangeteam"}}</label>
  63. </div>
  64. </div>
  65. </div>
  66. {{if .SignedUser.IsAdmin}}
  67. <div class="ui divider"></div>
  68. <div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">
  69. <label for="max_repo_creation">{{.i18n.Tr "admin.users.max_repo_creation"}}</label>
  70. <input id="max_repo_creation" name="max_repo_creation" type="number" value="{{.Org.MaxRepoCreation}}">
  71. <p class="help">{{.i18n.Tr "admin.users.max_repo_creation_desc"}}</p>
  72. </div>
  73. {{end}}
  74. <div class="field">
  75. <button class="ui green button">{{$.i18n.Tr "org.settings.update_settings"}}</button>
  76. </div>
  77. </form>
  78. <div class="ui divider"></div>
  79. <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
  80. {{.CsrfTokenHtml}}
  81. <div class="inline field">
  82. <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
  83. <input name="avatar" type="file" >
  84. </div>
  85. <div class="field">
  86. <button class="ui green button">{{$.i18n.Tr "settings.update_avatar"}}</button>
  87. <a class="ui red button delete-post" data-request-url="{{.Link}}/avatar/delete" data-done-url="{{.Link}}">{{$.i18n.Tr "settings.delete_current_avatar"}}</a>
  88. </div>
  89. </form>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1