|
1 | 1 | {{template "base/head" .}}
|
2 | 2 | <div role="main" aria-label="{{.Title}}" class="page-content organization new org">
|
3 |
| - <div class="ui middle very relaxed page grid"> |
4 |
| - <div class="column"> |
5 |
| - {{template "base/alert" .}} |
6 |
| - <h3 class="ui top attached header"> |
7 |
| - {{ctx.Locale.Tr "new_org"}} |
8 |
| - </h3> |
9 |
| - <div class="ui attached segment"> |
10 |
| - <form class="ui form left-right-form" action="{{.Link}}" method="post"> |
11 |
| - {{.CsrfTokenHtml}} |
12 |
| - <div class="inline required field {{if .Err_OrgName}}error{{end}}"> |
13 |
| - <label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label> |
14 |
| - <input id="org_name" name="org_name" value="{{.org_name}}" autofocus required maxlength="40"> |
15 |
| - <span class="help">{{ctx.Locale.Tr "org.org_name_helper"}}</span> |
16 |
| - </div> |
| 3 | + <div class="ui container medium-width"> |
| 4 | + {{template "base/alert" .}} |
| 5 | + <h3 class="ui top attached header"> |
| 6 | + {{ctx.Locale.Tr "new_org"}} |
| 7 | + </h3> |
| 8 | + <div class="ui attached segment"> |
| 9 | + <form class="ui form left-right-form" action="{{.Link}}" method="post"> |
| 10 | + {{.CsrfTokenHtml}} |
| 11 | + <div class="inline required field {{if .Err_OrgName}}error{{end}}"> |
| 12 | + <label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label> |
| 13 | + <input id="org_name" name="org_name" value="{{.org_name}}" autofocus required maxlength="40"> |
| 14 | + <span class="help">{{ctx.Locale.Tr "org.org_name_helper"}}</span> |
| 15 | + </div> |
17 | 16 |
|
18 |
| - <div class="inline field required {{if .Err_OrgVisibility}}error{{end}}"> |
19 |
| - <label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label> |
20 |
| - <div class="inline-right"> |
21 |
| - <div class="ui radio checkbox"> |
22 |
| - <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}> |
23 |
| - <label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label> |
24 |
| - </div> |
25 |
| - <div class="ui radio checkbox"> |
26 |
| - <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}> |
27 |
| - <label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label> |
28 |
| - </div> |
29 |
| - <div class="ui radio checkbox"> |
30 |
| - <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}> |
31 |
| - <label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label> |
32 |
| - </div> |
| 17 | + <div class="inline field required {{if .Err_OrgVisibility}}error{{end}}"> |
| 18 | + <label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label> |
| 19 | + <div class="inline-right"> |
| 20 | + <div class="ui radio checkbox"> |
| 21 | + <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}> |
| 22 | + <label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label> |
33 | 23 | </div>
|
34 |
| - </div> |
35 |
| - |
36 |
| - <div class="inline field" id="permission_box"> |
37 |
| - <label>{{ctx.Locale.Tr "org.settings.permission"}}</label> |
38 |
| - <div class="ui checkbox"> |
39 |
| - <input type="checkbox" name="repo_admin_change_team_access" checked> |
40 |
| - <label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label> |
| 24 | + <div class="ui radio checkbox"> |
| 25 | + <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}> |
| 26 | + <label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label> |
| 27 | + </div> |
| 28 | + <div class="ui radio checkbox"> |
| 29 | + <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}> |
| 30 | + <label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label> |
41 | 31 | </div>
|
42 | 32 | </div>
|
| 33 | + </div> |
43 | 34 |
|
44 |
| - <div class="inline field"> |
45 |
| - <label></label> |
46 |
| - <button class="ui primary button"> |
47 |
| - {{ctx.Locale.Tr "org.create_org"}} |
48 |
| - </button> |
| 35 | + <div class="inline field" id="permission_box"> |
| 36 | + <label>{{ctx.Locale.Tr "org.settings.permission"}}</label> |
| 37 | + <div class="ui checkbox"> |
| 38 | + <input type="checkbox" name="repo_admin_change_team_access" checked> |
| 39 | + <label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label> |
49 | 40 | </div>
|
50 |
| - </form> |
51 |
| - </div> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div class="inline field"> |
| 44 | + <label></label> |
| 45 | + <button class="ui primary button"> |
| 46 | + {{ctx.Locale.Tr "org.create_org"}} |
| 47 | + </button> |
| 48 | + </div> |
| 49 | + </form> |
52 | 50 | </div>
|
53 | 51 | </div>
|
54 | 52 | </div>
|
|
0 commit comments