2015-09-06 10:56:31 -04:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 17:56:10 -05:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content organization settings options">
|
2015-12-07 17:30:52 -05:00
|
|
|
{{template "org/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="ui grid">
|
|
|
|
{{template "org/settings/navbar" .}}
|
|
|
|
<div class="twelve wide column content">
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "org.settings.options"}}
|
2015-12-07 17:30:52 -05: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}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="org_name">{{.locale.Tr "org.org_name_holder"}}
|
|
|
|
<span class="text red hide" id="org-name-change-prompt"> {{.locale.Tr "org.settings.change_orgname_prompt"}}</span>
|
|
|
|
<span class="text red hide" id="org-name-change-redirect-prompt"> {{.locale.Tr "org.settings.change_orgname_redirect_prompt"}}</span>
|
2021-01-24 10:23:05 -05:00
|
|
|
</label>
|
2015-12-07 17:30:52 -05:00
|
|
|
<input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required>
|
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_FullName}}error{{end}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="full_name">{{.locale.Tr "org.org_full_name_holder"}}</label>
|
2017-04-05 21:31:31 -04:00
|
|
|
<input id="full_name" name="full_name" value="{{.Org.FullName}}">
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_Description}}error{{end}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="description">{{$.locale.Tr "org.org_desc"}}</label>
|
2015-12-07 17:30:52 -05:00
|
|
|
<textarea id="description" name="description" rows="2">{{.Org.Description}}</textarea>
|
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_Website}}error{{end}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="website">{{.locale.Tr "org.settings.website"}}</label>
|
2015-12-07 17:30:52 -05:00
|
|
|
<input id="website" name="website" type="url" value="{{.Org.Website}}">
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="location">{{.locale.Tr "org.settings.location"}}</label>
|
2015-12-07 17:30:52 -05:00
|
|
|
<input id="location" name="location" value="{{.Org.Location}}">
|
|
|
|
</div>
|
2015-09-06 10:56:31 -04:00
|
|
|
|
2019-02-18 11:00:27 -05:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
<div class="field" id="visibility_box">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label>
|
2019-02-18 11:00:27 -05:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}/>
|
2022-06-27 16:58:46 -04:00
|
|
|
<label>{{.locale.Tr "org.settings.visibility.public"}}</label>
|
2019-02-18 11:00:27 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}/>
|
2022-06-27 16:58:46 -04:00
|
|
|
<label>{{.locale.Tr "org.settings.visibility.limited"}}</label>
|
2019-02-18 11:00:27 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}/>
|
2022-06-27 16:58:46 -04:00
|
|
|
<label>{{.locale.Tr "org.settings.visibility.private"}}</label>
|
2019-02-18 11:00:27 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-09-23 16:08:03 -04:00
|
|
|
<div class="field" id="permission_box">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label>{{.locale.Tr "org.settings.permission"}}</label>
|
2019-09-23 16:08:03 -04:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
2019-09-29 19:20:27 -04:00
|
|
|
<input class="hidden" type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}/>
|
2022-06-27 16:58:46 -04:00
|
|
|
<label>{{.locale.Tr "org.settings.repoadminchangeteam"}}</label>
|
2019-09-23 16:08:03 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-12-11 19:24:57 -05:00
|
|
|
{{if .SignedUser.IsAdmin}}
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
|
|
|
<div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="max_repo_creation">{{.locale.Tr "admin.users.max_repo_creation"}}</label>
|
2015-12-11 19:24:57 -05:00
|
|
|
<input id="max_repo_creation" name="max_repo_creation" type="number" value="{{.Org.MaxRepoCreation}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<p class="help">{{.locale.Tr "admin.users.max_repo_creation_desc"}}</p>
|
2015-12-11 19:24:57 -05:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2015-12-07 17:30:52 -05:00
|
|
|
<div class="field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui green button">{{$.locale.Tr "org.settings.update_settings"}}</button>
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-09-06 17:12:02 -04:00
|
|
|
|
2015-12-07 17:30:52 -05:00
|
|
|
<div class="ui divider"></div>
|
2015-09-06 17:12:02 -04:00
|
|
|
|
2015-12-07 17:30:52 -05:00
|
|
|
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="inline field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label>
|
2015-12-07 17:30:52 -05:00
|
|
|
<input name="avatar" type="file" >
|
|
|
|
</div>
|
2015-09-06 17:12:02 -04:00
|
|
|
|
2015-12-07 17:30:52 -05:00
|
|
|
<div class="field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button>
|
|
|
|
<a class="ui red button delete-post" data-request-url="{{.Link}}/avatar/delete" data-done-url="{{.Link}}">{{$.locale.Tr "settings.delete_current_avatar"}}</a>
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-14 02:12:21 -04:00
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
{{template "base/footer" .}}
|