2023-04-23 04:21:21 -06:00
|
|
|
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings options")}}
|
|
|
|
<div class="org-setting-content">
|
2015-12-07 15:30:52 -07:00
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 02:56:50 -06:00
|
|
|
{{ctx.Locale.Tr "org.settings.options"}}
|
2015-12-07 15:30:52 -07:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="required field {{if .Err_Name}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}
|
2023-04-17 09:35:57 -06:00
|
|
|
<span class="text red gt-hidden" id="org-name-change-prompt">
|
2023-09-25 06:42:40 -06:00
|
|
|
<br>{{ctx.Locale.Tr "org.settings.change_orgname_prompt"}}<br>{{ctx.Locale.Tr "org.settings.change_orgname_redirect_prompt"}}
|
2023-04-17 09:35:57 -06:00
|
|
|
</span>
|
2021-01-24 08:23:05 -07:00
|
|
|
</label>
|
2023-04-17 09:35:57 -06:00
|
|
|
<input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required maxlength="40">
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_FullName}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="full_name">{{ctx.Locale.Tr "org.org_full_name_holder"}}</label>
|
2023-04-17 09:35:57 -06:00
|
|
|
<input id="full_name" name="full_name" value="{{.Org.FullName}}" maxlength="100">
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2023-07-25 02:26:27 -06:00
|
|
|
<div class="field {{if .Err_Email}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="email">{{ctx.Locale.Tr "org.settings.email"}}</label>
|
2023-07-25 02:26:27 -06:00
|
|
|
<input id="email" name="email" type="email" value="{{.Org.Email}}" maxlength="255">
|
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="field {{if .Err_Description}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="description">{{ctx.Locale.Tr "org.org_desc"}}</label>
|
2023-04-17 09:35:57 -06:00
|
|
|
<textarea id="description" name="description" rows="2" maxlength="255">{{.Org.Description}}</textarea>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_Website}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="website">{{ctx.Locale.Tr "org.settings.website"}}</label>
|
2023-04-17 09:35:57 -06:00
|
|
|
<input id="website" name="website" type="url" value="{{.Org.Website}}" maxlength="255">
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="location">{{ctx.Locale.Tr "org.settings.location"}}</label>
|
2023-04-17 09:35:57 -06:00
|
|
|
<input id="location" name="location" value="{{.Org.Location}}" maxlength="50">
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2015-09-06 08:56:31 -06:00
|
|
|
|
2023-06-29 06:24:22 -06:00
|
|
|
<div class="divider"></div>
|
2019-02-18 09:00:27 -07:00
|
|
|
<div class="field" id="visibility_box">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>
|
2019-02-18 09:00:27 -07:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2023-08-25 20:44:00 -06:00
|
|
|
<input class="enable-system-radio" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}>
|
2023-09-25 02:56:50 -06:00
|
|
|
<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>
|
2019-02-18 09:00:27 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2023-08-25 20:44:00 -06:00
|
|
|
<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}>
|
2023-09-25 02:56:50 -06:00
|
|
|
<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>
|
2019-02-18 09:00:27 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2023-08-25 20:44:00 -06:00
|
|
|
<input class="enable-system-radio" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}>
|
2023-09-25 02:56:50 -06:00
|
|
|
<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>
|
2019-02-18 09:00:27 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-09-23 14:08:03 -06:00
|
|
|
<div class="field" id="permission_box">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label>{{ctx.Locale.Tr "org.settings.permission"}}</label>
|
2019-09-23 14:08:03 -06:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
2023-03-27 10:05:51 -06:00
|
|
|
<input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}>
|
2023-09-25 02:56:50 -06:00
|
|
|
<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>
|
2019-09-23 14:08:03 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-12-11 17:24:57 -07:00
|
|
|
{{if .SignedUser.IsAdmin}}
|
2023-06-29 06:24:22 -06:00
|
|
|
<div class="divider"></div>
|
2015-12-11 17:24:57 -07:00
|
|
|
|
|
|
|
<div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="max_repo_creation">{{ctx.Locale.Tr "admin.users.max_repo_creation"}}</label>
|
2023-05-26 03:42:54 -06:00
|
|
|
<input id="max_repo_creation" name="max_repo_creation" type="number" min="-1" value="{{.Org.MaxRepoCreation}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<p class="help">{{ctx.Locale.Tr "admin.users.max_repo_creation_desc"}}</p>
|
2015-12-11 17:24:57 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="field">
|
2023-09-25 02:56:50 -06:00
|
|
|
<button class="ui primary button">{{ctx.Locale.Tr "org.settings.update_settings"}}</button>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-09-06 15:12:02 -06:00
|
|
|
|
2023-06-29 06:24:22 -06:00
|
|
|
<div class="divider"></div>
|
2015-09-06 15:12:02 -06:00
|
|
|
|
2015-12-07 15:30:52 -07:00
|
|
|
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="inline field">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label>
|
2023-04-21 15:58:59 -06:00
|
|
|
<input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp">
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2015-09-06 15:12:02 -06:00
|
|
|
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="field">
|
2023-09-25 02:56:50 -06:00
|
|
|
<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>
|
|
|
|
<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-23 04:21:21 -06:00
|
|
|
{{template "org/settings/layout_footer" .}}
|