| 
1 | 1 | {{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings options")}}  | 
2 |  | -			<div class="org-setting-content">  | 
3 |  | -				<h4 class="ui top attached header">  | 
4 |  | -					{{ctx.Locale.Tr "org.settings.options"}}  | 
5 |  | -				</h4>  | 
6 |  | -				<div class="ui attached segment">  | 
7 |  | -					<form class="ui form" action="{{.Link}}" method="post">  | 
8 |  | -						{{.CsrfTokenHtml}}  | 
9 |  | -						<div class="field {{if .Err_FullName}}error{{end}}">  | 
10 |  | -							<label for="full_name">{{ctx.Locale.Tr "org.org_full_name_holder"}}</label>  | 
11 |  | -							<input id="full_name" name="full_name" value="{{.Org.FullName}}" maxlength="100">  | 
12 |  | -						</div>  | 
13 |  | -						<div class="field {{if .Err_Email}}error{{end}}">  | 
14 |  | -							<label for="email">{{ctx.Locale.Tr "org.settings.email"}}</label>  | 
15 |  | -							<input id="email" name="email" type="email" value="{{.Org.Email}}" maxlength="255">  | 
16 |  | -						</div>  | 
17 |  | -						<div class="field {{if .Err_Description}}error{{end}}">  | 
18 |  | -							{{/* it is rendered as markdown, but the length is limited, so at the moment we do not use the markdown editor here */}}  | 
19 |  | -							<label for="description">{{ctx.Locale.Tr "org.org_desc"}}</label>  | 
20 |  | -							<textarea id="description" name="description" rows="2" maxlength="255">{{.Org.Description}}</textarea>  | 
21 |  | -						</div>  | 
22 |  | -						<div class="field {{if .Err_Website}}error{{end}}">  | 
23 |  | -							<label for="website">{{ctx.Locale.Tr "org.settings.website"}}</label>  | 
24 |  | -							<input id="website" name="website" type="url" value="{{.Org.Website}}" maxlength="255">  | 
25 |  | -						</div>  | 
26 |  | -						<div class="field">  | 
27 |  | -							<label for="location">{{ctx.Locale.Tr "org.settings.location"}}</label>  | 
28 |  | -							<input id="location" name="location"  value="{{.Org.Location}}" maxlength="50">  | 
29 |  | -						</div>  | 
30 | 2 | 
 
  | 
31 |  | -						<div class="divider"></div>  | 
32 |  | -						<div class="field" id="visibility_box">  | 
33 |  | -							<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>  | 
34 |  | -							<div class="field">  | 
35 |  | -								<div class="ui radio checkbox">  | 
36 |  | -									<input class="enable-system-radio" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}>  | 
37 |  | -									<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>  | 
38 |  | -								</div>  | 
39 |  | -							</div>  | 
40 |  | -							<div class="field">  | 
41 |  | -								<div class="ui radio checkbox">  | 
42 |  | -									<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}>  | 
43 |  | -									<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>  | 
44 |  | -								</div>  | 
45 |  | -							</div>  | 
46 |  | -							<div class="field">  | 
47 |  | -								<div class="ui radio checkbox">  | 
48 |  | -									<input class="enable-system-radio" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}>  | 
49 |  | -									<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>  | 
50 |  | -								</div>  | 
51 |  | -							</div>  | 
52 |  | -						</div>  | 
 | 3 | +<div class="ui segments org-setting-content">  | 
 | 4 | +	<h4 class="ui top attached header">  | 
 | 5 | +		{{ctx.Locale.Tr "org.settings.options"}}  | 
 | 6 | +	</h4>  | 
 | 7 | +	<div class="ui attached segment">  | 
 | 8 | +		<form class="ui form" action="{{.Link}}" method="post">  | 
 | 9 | +			{{.CsrfTokenHtml}}  | 
 | 10 | +			<div class="field {{if .Err_FullName}}error{{end}}">  | 
 | 11 | +				<label for="full_name">{{ctx.Locale.Tr "org.org_full_name_holder"}}</label>  | 
 | 12 | +				<input id="full_name" name="full_name" value="{{.Org.FullName}}" maxlength="100">  | 
 | 13 | +			</div>  | 
 | 14 | +			<div class="field {{if .Err_Email}}error{{end}}">  | 
 | 15 | +				<label for="email">{{ctx.Locale.Tr "org.settings.email"}}</label>  | 
 | 16 | +				<input id="email" name="email" type="email" value="{{.Org.Email}}" maxlength="255">  | 
 | 17 | +			</div>  | 
 | 18 | +			<div class="field {{if .Err_Description}}error{{end}}">  | 
 | 19 | +				{{/* it is rendered as markdown, but the length is limited, so at the moment we do not use the markdown editor here */}}  | 
 | 20 | +				<label for="description">{{ctx.Locale.Tr "org.org_desc"}}</label>  | 
 | 21 | +				<textarea id="description" name="description" rows="2" maxlength="255">{{.Org.Description}}</textarea>  | 
 | 22 | +			</div>  | 
 | 23 | +			<div class="field {{if .Err_Website}}error{{end}}">  | 
 | 24 | +				<label for="website">{{ctx.Locale.Tr "org.settings.website"}}</label>  | 
 | 25 | +				<input id="website" name="website" type="url" value="{{.Org.Website}}" maxlength="255">  | 
 | 26 | +			</div>  | 
 | 27 | +			<div class="field">  | 
 | 28 | +				<label for="location">{{ctx.Locale.Tr "org.settings.location"}}</label>  | 
 | 29 | +				<input id="location" name="location"  value="{{.Org.Location}}" maxlength="50">  | 
 | 30 | +			</div>  | 
 | 31 | + | 
 | 32 | +			<div class="divider"></div>  | 
 | 33 | +			<div class="field" id="visibility_box">  | 
 | 34 | +				<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>  | 
 | 35 | +				<div class="field">  | 
 | 36 | +					<div class="ui radio checkbox">  | 
 | 37 | +						<input class="enable-system-radio" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}>  | 
 | 38 | +						<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>  | 
 | 39 | +					</div>  | 
 | 40 | +				</div>  | 
 | 41 | +				<div class="field">  | 
 | 42 | +					<div class="ui radio checkbox">  | 
 | 43 | +						<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}>  | 
 | 44 | +						<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>  | 
 | 45 | +					</div>  | 
 | 46 | +				</div>  | 
 | 47 | +				<div class="field">  | 
 | 48 | +					<div class="ui radio checkbox">  | 
 | 49 | +						<input class="enable-system-radio" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}>  | 
 | 50 | +						<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>  | 
 | 51 | +					</div>  | 
 | 52 | +				</div>  | 
 | 53 | +			</div>  | 
53 | 54 | 
 
  | 
54 |  | -						<div class="field" id="permission_box">  | 
55 |  | -							<label>{{ctx.Locale.Tr "org.settings.permission"}}</label>  | 
56 |  | -							<div class="field">  | 
57 |  | -								<div class="ui checkbox">  | 
58 |  | -									<input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}>  | 
59 |  | -									<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>  | 
60 |  | -								</div>  | 
61 |  | -							</div>  | 
62 |  | -						</div>  | 
 | 55 | +			<div class="field" id="permission_box">  | 
 | 56 | +				<label>{{ctx.Locale.Tr "org.settings.permission"}}</label>  | 
 | 57 | +				<div class="field">  | 
 | 58 | +					<div class="ui checkbox">  | 
 | 59 | +						<input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}>  | 
 | 60 | +						<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>  | 
 | 61 | +					</div>  | 
 | 62 | +				</div>  | 
 | 63 | +			</div>  | 
63 | 64 | 
 
  | 
64 |  | -						{{if .SignedUser.IsAdmin}}  | 
65 |  | -						<div class="divider"></div>  | 
 | 65 | +			{{if .SignedUser.IsAdmin}}  | 
 | 66 | +			<div class="divider"></div>  | 
66 | 67 | 
 
  | 
67 |  | -						<div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">  | 
68 |  | -							<label for="max_repo_creation">{{ctx.Locale.Tr "admin.users.max_repo_creation"}}</label>  | 
69 |  | -							<input id="max_repo_creation" name="max_repo_creation" type="number" min="-1" value="{{.Org.MaxRepoCreation}}">  | 
70 |  | -							<p class="help">{{ctx.Locale.Tr "admin.users.max_repo_creation_desc"}}</p>  | 
71 |  | -						</div>  | 
72 |  | -						{{end}}  | 
 | 68 | +			<div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">  | 
 | 69 | +				<label for="max_repo_creation">{{ctx.Locale.Tr "admin.users.max_repo_creation"}}</label>  | 
 | 70 | +				<input id="max_repo_creation" name="max_repo_creation" type="number" min="-1" value="{{.Org.MaxRepoCreation}}">  | 
 | 71 | +				<p class="help">{{ctx.Locale.Tr "admin.users.max_repo_creation_desc"}}</p>  | 
 | 72 | +			</div>  | 
 | 73 | +			{{end}}  | 
73 | 74 | 
 
  | 
74 |  | -						<div class="field">  | 
75 |  | -							<button class="ui primary button">{{ctx.Locale.Tr "org.settings.update_settings"}}</button>  | 
76 |  | -						</div>  | 
77 |  | -					</form>  | 
 | 75 | +			<div class="field">  | 
 | 76 | +				<button class="ui primary button">{{ctx.Locale.Tr "org.settings.update_settings"}}</button>  | 
 | 77 | +			</div>  | 
 | 78 | +		</form>  | 
78 | 79 | 
 
  | 
79 |  | -					<div class="divider"></div>  | 
 | 80 | +		<div class="divider"></div>  | 
80 | 81 | 
 
  | 
81 |  | -					<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">  | 
82 |  | -						{{.CsrfTokenHtml}}  | 
83 |  | -						<div class="inline field">  | 
84 |  | -							{{template "shared/avatar_upload_crop" dict "LabelText" (ctx.Locale.Tr "settings.choose_new_avatar")}}  | 
85 |  | -						</div>  | 
86 |  | -						<div class="field">  | 
87 |  | -							<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>  | 
88 |  | -							<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>  | 
89 |  | -						</div>  | 
90 |  | -					</form>  | 
91 |  | -				</div>  | 
 | 82 | +		<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">  | 
 | 83 | +			{{.CsrfTokenHtml}}  | 
 | 84 | +			<div class="inline field">  | 
 | 85 | +				{{template "shared/avatar_upload_crop" dict "LabelText" (ctx.Locale.Tr "settings.choose_new_avatar")}}  | 
 | 86 | +			</div>  | 
 | 87 | +			<div class="field">  | 
 | 88 | +				<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>  | 
 | 89 | +				<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>  | 
92 | 90 | 			</div>  | 
93 |  | -			{{template "org/settings/options_dangerzone" .}}  | 
 | 91 | +		</form>  | 
 | 92 | +	</div>  | 
 | 93 | +</div>  | 
 | 94 | + | 
 | 95 | +{{template "org/settings/options_dangerzone" .}}  | 
 | 96 | + | 
94 | 97 | {{template "org/settings/layout_footer" .}}  | 
0 commit comments