2018-10-15 13:36:19 +00:00
|
|
|
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors js-general-permissions-form' }, authenticity_token: true do |f|
|
2018-08-08 06:24:36 +00:00
|
|
|
%input{ type: 'hidden', name: 'update_section', value: 'js-permissions-settings' }
|
2018-05-28 12:58:39 +00:00
|
|
|
= form_errors(@group)
|
|
|
|
|
|
|
|
%fieldset
|
2018-10-15 13:36:19 +00:00
|
|
|
%h5= _('Permissions')
|
|
|
|
.form-group
|
|
|
|
= render 'shared/allow_request_access', form: f
|
2018-05-28 12:58:39 +00:00
|
|
|
|
2020-06-22 15:09:27 +00:00
|
|
|
.form-group.gl-mb-3
|
2018-10-15 13:36:19 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group), class: 'form-check-input'
|
|
|
|
= f.label :share_with_group_lock, class: 'form-check-label' do
|
2019-08-17 05:56:48 +00:00
|
|
|
%span.d-block
|
2018-10-15 13:36:19 +00:00
|
|
|
- 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 }
|
2019-08-28 07:16:29 +00:00
|
|
|
%span.js-descr.text-muted= share_with_group_lock_help_text(@group)
|
2018-05-28 12:58:39 +00:00
|
|
|
|
2020-06-22 15:09:27 +00:00
|
|
|
.form-group.gl-mb-3
|
2019-08-17 05:56:48 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :emails_disabled, checked: @group.emails_disabled?, disabled: !can_disable_group_emails?(@group), class: 'form-check-input'
|
|
|
|
= f.label :emails_disabled, class: 'form-check-label' do
|
|
|
|
%span.d-block= s_('GroupSettings|Disable email notifications')
|
|
|
|
%span.text-muted= s_('GroupSettings|This setting will override user notification preferences for all members of the group, subgroups, and projects.')
|
|
|
|
|
2020-06-22 15:09:27 +00:00
|
|
|
.form-group.gl-mb-3
|
2019-12-03 12:06:34 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :mentions_disabled, checked: @group.mentions_disabled?, class: 'form-check-input'
|
|
|
|
= f.label :mentions_disabled, class: 'form-check-label' do
|
|
|
|
%span.d-block= s_('GroupSettings|Disable group mentions')
|
|
|
|
%span.text-muted= s_('GroupSettings|This setting will prevent group members from being notified if the group is mentioned.')
|
|
|
|
|
2020-07-15 00:09:23 +00:00
|
|
|
= render_if_exists 'groups/settings/delayed_project_removal', f: f, group: @group
|
2019-06-17 15:20:43 +00:00
|
|
|
= render_if_exists 'groups/settings/ip_restriction', f: f, group: @group
|
2019-08-16 22:04:21 +00:00
|
|
|
= render_if_exists 'groups/settings/allowed_email_domain', f: f, group: @group
|
2018-10-15 13:36:19 +00:00
|
|
|
= render 'groups/settings/lfs', f: f
|
2020-04-24 09:09:44 +00:00
|
|
|
= render 'groups/settings/default_branch_protection', f: f, group: @group
|
2019-04-05 18:49:46 +00:00
|
|
|
= render 'groups/settings/project_creation_level', f: f, group: @group
|
2019-06-27 21:11:09 +00:00
|
|
|
= render 'groups/settings/subgroup_creation_level', f: f, group: @group
|
2018-10-15 13:36:19 +00:00
|
|
|
= render 'groups/settings/two_factor_auth', f: f
|
2020-04-15 12:09:18 +00:00
|
|
|
= render_if_exists 'groups/personal_access_token_expiration_policy', f: f, group: @group
|
2018-05-28 17:18:26 +00:00
|
|
|
= render_if_exists 'groups/member_lock_setting', f: f, group: @group
|
2018-05-28 16:07:57 +00:00
|
|
|
|
2020-06-26 06:09:03 +00:00
|
|
|
= f.submit _('Save changes'), class: 'btn btn-success gl-mt-3 js-dirty-submit', data: { qa_selector: 'save_permissions_changes_button' }
|