|
17 | 17 | <span class="text red gt-hidden" id="org-name-change-prompt"> {{.locale.Tr "org.settings.change_orgname_prompt"}}</span> |
18 | 18 | <span class="text red gt-hidden" id="org-name-change-redirect-prompt"> {{.locale.Tr "org.settings.change_orgname_redirect_prompt"}}</span> |
19 | 19 | </label> |
20 | | - <input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required> |
| 20 | + <input id="org_name" name="name" value="{{.Form.Name}}" data-org-name="{{.Form.Name}}" autofocus required> |
21 | 21 | </div> |
22 | 22 | <div class="field {{if .Err_FullName}}error{{end}}"> |
23 | 23 | <label for="full_name">{{.locale.Tr "org.org_full_name_holder"}}</label> |
24 | | - <input id="full_name" name="full_name" value="{{.Org.FullName}}"> |
| 24 | + <input id="full_name" name="full_name" value="{{.Form.FullName}}"> |
25 | 25 | </div> |
26 | 26 | <div class="field {{if .Err_Description}}error{{end}}"> |
27 | 27 | <label for="description">{{$.locale.Tr "org.org_desc"}}</label> |
28 | | - <textarea id="description" name="description" rows="2">{{.Org.Description}}</textarea> |
| 28 | + <textarea id="description" name="description" rows="2">{{.Form.Description}}</textarea> |
29 | 29 | </div> |
30 | 30 | <div class="field {{if .Err_Website}}error{{end}}"> |
31 | 31 | <label for="website">{{.locale.Tr "org.settings.website"}}</label> |
32 | | - <input id="website" name="website" type="url" value="{{.Org.Website}}"> |
| 32 | + <input id="website" name="website" type="url" value="{{.Form.Website}}"> |
33 | 33 | </div> |
34 | 34 | <div class="field"> |
35 | 35 | <label for="location">{{.locale.Tr "org.settings.location"}}</label> |
36 | | - <input id="location" name="location" value="{{.Org.Location}}"> |
| 36 | + <input id="location" name="location" value="{{.Form.Location}}"> |
37 | 37 | </div> |
38 | 38 |
|
39 | 39 | <div class="ui divider"></div> |
40 | 40 | <div class="field" id="visibility_box"> |
41 | 41 | <label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label> |
42 | 42 | <div class="field"> |
43 | 43 | <div class="ui radio checkbox"> |
44 | | - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}> |
| 44 | + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .Form.Visibility 0}}checked{{end}}> |
45 | 45 | <label>{{.locale.Tr "org.settings.visibility.public"}}</label> |
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | <div class="field"> |
49 | 49 | <div class="ui radio checkbox"> |
50 | | - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}> |
| 50 | + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .Form.Visibility 1}}checked{{end}}> |
51 | 51 | <label>{{.locale.Tr "org.settings.visibility.limited"}}</label> |
52 | 52 | </div> |
53 | 53 | </div> |
54 | 54 | <div class="field"> |
55 | 55 | <div class="ui radio checkbox"> |
56 | | - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}> |
| 56 | + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .Form.Visibility 2}}checked{{end}}> |
57 | 57 | <label>{{.locale.Tr "org.settings.visibility.private"}}</label> |
58 | 58 | </div> |
59 | 59 | </div> |
|
63 | 63 | <label>{{.locale.Tr "org.settings.permission"}}</label> |
64 | 64 | <div class="field"> |
65 | 65 | <div class="ui checkbox"> |
66 | | - <input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}> |
| 66 | + <input type="checkbox" name="repo_admin_change_team_access" {{if .Form.RepoAdminChangeTeamAccess}}checked{{end}}> |
67 | 67 | <label>{{.locale.Tr "org.settings.repoadminchangeteam"}}</label> |
68 | 68 | </div> |
69 | 69 | </div> |
|
74 | 74 |
|
75 | 75 | <div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}"> |
76 | 76 | <label for="max_repo_creation">{{.locale.Tr "admin.users.max_repo_creation"}}</label> |
77 | | - <input id="max_repo_creation" name="max_repo_creation" type="number" value="{{.Org.MaxRepoCreation}}"> |
| 77 | + <input id="max_repo_creation" name="max_repo_creation" type="number" value="{{.Form.MaxRepoCreation}}"> |
78 | 78 | <p class="help">{{.locale.Tr "admin.users.max_repo_creation_desc"}}</p> |
79 | 79 | </div> |
80 | 80 | {{end}} |
|
0 commit comments