2018-03-17 18:26:18 +05:30
- breadcrumb_title "General Settings"
2018-10-15 14:42:47 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2016-01-19 16:12:03 +05:30
.panel.panel-default.prepend-top-default
2015-04-26 12:48:37 +05:30
.panel-heading
2015-12-23 02:04:40 +05:30
Group settings
2015-04-26 12:48:37 +05:30
.panel-body
2017-08-17 22:00:37 +05:30
= form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@group)
2015-04-26 12:48:37 +05:30
= render 'shared/group_form', f: f
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.form-group
2015-09-11 14:41:01 +05:30
.col-sm-offset-2.col-sm-10
2017-08-17 22:00:37 +05:30
.avatar-container.s160
2018-03-17 18:26:18 +05:30
= group_icon(@group, alt: '', class: 'avatar group-avatar s160')
2015-04-26 12:48:37 +05:30
%p.light
- if @group.avatar?
2018-03-17 18:26:18 +05:30
You can change the group avatar here
2015-04-26 12:48:37 +05:30
- else
You can upload a group avatar here
= render 'shared/choose_group_avatar_button', f: f
- if @group.avatar?
%hr
2018-03-17 18:26:18 +05:30
= link_to _('Remove avatar'), group_avatar_path(@group.to_param), data: { confirm: _("Avatar will be removed. Are you sure?")}, method: :delete, class: "btn btn-danger btn-inverted"
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
= render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group
2016-08-24 12:49:21 +05:30
.form-group
.col-sm-offset-2.col-sm-10
= render 'shared/allow_request_access', form: f
2016-06-02 11:05:42 +05:30
.form-group
2018-03-17 18:26:18 +05:30
%label.control-label
= s_("GroupSettings|Share with group lock")
2016-06-02 11:05:42 +05:30
.col-sm-10
.checkbox
2018-03-17 18:26:18 +05:30
= f.label :share_with_group_lock do
= f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group)
%strong
- group_link = link_to @group.name, group_path(@group)
= s_("GroupSettings|Prevent sharing a project within %{group} with other groups").html_safe % { group: group_link }
%br
%span.descr= share_with_group_lock_help_text(@group)
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
= render 'group_admin_settings', f: f
2016-06-02 11:05:42 +05:30
2015-04-26 12:48:37 +05:30
.form-actions
= f.submit 'Save group', class: "btn btn-save"
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.panel.panel-danger
.panel-heading Remove group
.panel-body
2017-09-10 17:25:29 +05:30
= form_tag(@group, method: :delete) do
%p
Removing group will cause all child projects and resources to be removed.
%br
%strong Removed group can not be restored!
2014-09-02 18:07:02 +05:30
2017-09-10 17:25:29 +05:30
.form-actions
= button_to 'Remove group', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_group_message(@group) }
2018-03-17 18:26:18 +05:30
- if supports_nested_groups?
.panel.panel-warning
.panel-heading Transfer group
.panel-body
= form_for @group, url: transfer_group_path(@group), method: :put do |f|
.form-group
= dropdown_tag('Select parent group', options: { toggle_class: 'js-groups-dropdown', title: 'Parent Group', filter: true, dropdown_class: 'dropdown-open-top dropdown-group-transfer', placeholder: "Search groups", data: { data: parent_group_options(@group) } })
= hidden_field_tag 'new_parent_group_id'
%ul
%li Be careful. Changing a group's parent can have unintended #{link_to 'side effects', 'https://docs.gitlab.com/ce/user/project/index.html#redirects-when-changing-repository-paths', target: 'blank'}.
%li You can only transfer the group to a group you manage.
%li You will need to update your local repositories to point to the new location.
%li If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility.
= f.submit 'Transfer group', class: "btn btn-warning"
2017-09-10 17:25:29 +05:30
= render 'shared/confirm_modal', phrase: @group.path