|
11 | 11 | {{template "base/alert" .}} |
12 | 12 | <div class="inline required field {{if .Err_OrgName}}error{{end}}"> |
13 | 13 | <label for="org_name">{{.locale.Tr "org.org_name_holder"}}</label> |
14 | | - <input id="org_name" name="org_name" value="{{.org_name}}" autofocus required> |
| 14 | + <input id="org_name" name="org_name" value="{{.OrgName}}" autofocus required> |
15 | 15 | <span class="help">{{.locale.Tr "org.org_name_helper"}}</span> |
16 | 16 | </div> |
17 | 17 |
|
18 | 18 | <div class="inline field {{if .Err_OrgVisibility}}error{{end}}"> |
19 | 19 | <span class="inline required field"><label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label></span> |
20 | 20 | <div class="inline-grouped-list"> |
21 | 21 | <div class="ui radio checkbox"> |
22 | | - <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}/> |
| 22 | + <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .Visibility.IsPublic}}checked{{end}}/> |
23 | 23 | <label>{{.locale.Tr "org.settings.visibility.public"}}</label> |
24 | 24 | </div> |
25 | 25 | <div class="ui radio checkbox"> |
26 | | - <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}/> |
| 26 | + <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .Visibility.IsLimited}}checked{{end}}/> |
27 | 27 | <label>{{.locale.Tr "org.settings.visibility.limited"}}</label> |
28 | 28 | </div> |
29 | 29 | <div class="ui radio checkbox"> |
30 | | - <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}/> |
| 30 | + <input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .Visibility.IsPrivate}}checked{{end}}/> |
31 | 31 | <label>{{.locale.Tr "org.settings.visibility.private"}}</label> |
32 | 32 | </div> |
33 | 33 | </div> |
|
37 | 37 | <label>{{.locale.Tr "org.settings.permission"}}</label> |
38 | 38 | <div class="inline-grouped-list"> |
39 | 39 | <div class="ui checkbox"> |
40 | | - <input class="hidden" type="checkbox" name="repo_admin_change_team_access" checked/> |
| 40 | + <input class="hidden" type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}/> |
41 | 41 | <label>{{.locale.Tr "org.settings.repoadminchangeteam"}}</label> |
42 | 42 | </div> |
43 | 43 | </div> |
|
0 commit comments