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.

52 lines
2.1 KiB

  1. {{template "base/head" .}}
  2. <div class="organization new org">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form" action="{{.Link}}" method="post">
  6. {{.CsrfTokenHtml}}
  7. <h3 class="ui top attached header">
  8. {{.i18n.Tr "new_org"}}
  9. </h3>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. <div class="inline required field {{if .Err_OrgName}}error{{end}}">
  13. <label for="org_name">{{.i18n.Tr "org.org_name_holder"}}</label>
  14. <input id="org_name" name="org_name" value="{{.org_name}}" autofocus required>
  15. <span class="help">{{.i18n.Tr "org.org_name_helper"}}</span>
  16. </div>
  17. <div class="inline required field {{if .Err_OrgVisibility}}error{{end}}">
  18. <label for="visibility">{{.i18n.Tr "org.settings.visibility"}}</label>
  19. <div class="field">
  20. <div class="ui radio checkbox">
  21. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}/>
  22. <label>{{.i18n.Tr "org.settings.visibility.public"}}</label>
  23. </div>
  24. </div>
  25. <div class="field">
  26. <div class="ui radio checkbox">
  27. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}/>
  28. <label>{{.i18n.Tr "org.settings.visibility.limited"}}</label>
  29. </div>
  30. </div>
  31. <div class="field">
  32. <div class="ui radio checkbox">
  33. <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}/>
  34. <label>{{.i18n.Tr "org.settings.visibility.private"}}</label>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="inline field">
  39. <label></label>
  40. <button class="ui green button">
  41. {{.i18n.Tr "org.create_org"}}
  42. </button>
  43. <a class="ui button" href="{{AppSubUrl}}/">{{.i18n.Tr "cancel"}}</a>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. </div>
  50. {{template "base/footer" .}}