File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,14 @@ const (
27
27
// Create render the page for create organization
28
28
func Create (ctx * context.Context ) {
29
29
ctx .Data ["Title" ] = ctx .Tr ("new_org" )
30
- ctx .Data ["DefaultOrgVisibilityMode" ] = setting .Service .DefaultOrgVisibilityMode
31
30
if ! ctx .Doer .CanCreateOrganization () {
32
31
ctx .ServerError ("Not allowed" , errors .New (ctx .Locale .TrString ("org.form.create_org_not_allowed" )))
33
32
return
34
33
}
34
+
35
+ ctx .Data ["visibility" ] = setting .Service .DefaultOrgVisibilityMode
36
+ ctx .Data ["repo_admin_change_team_access" ] = true
37
+
35
38
ctx .HTML (http .StatusOK , tplCreateOrg )
36
39
}
37
40
Original file line number Diff line number Diff line change 18
18
<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>
19
19
<div class="inline-right">
20
20
<div class="ui radio checkbox">
21
- <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode .IsPublic}}checked{{end}}>
21
+ <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .visibility .IsPublic}}checked{{end}}>
22
22
<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>
23
23
</div>
24
24
<div class="ui radio checkbox">
25
- <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode .IsLimited}}checked{{end}}>
25
+ <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .visibility .IsLimited}}checked{{end}}>
26
26
<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>
27
27
</div>
28
28
<div class="ui radio checkbox">
29
- <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode .IsPrivate}}checked{{end}}>
29
+ <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .visibility .IsPrivate}}checked{{end}}>
30
30
<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>
31
31
</div>
32
32
</div>
35
35
<div class="inline field" id="permission_box">
36
36
<label>{{ctx.Locale.Tr "org.settings.permission"}}</label>
37
37
<div class="ui checkbox">
38
- <input type="checkbox" name="repo_admin_change_team_access" checked>
38
+ <input type="checkbox" name="repo_admin_change_team_access" {{if .repo_admin_change_team_access}} checked{{end}} >
39
39
<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>
40
40
</div>
41
41
</div>
You can’t perform that action at this time.
0 commit comments