debian-mirror-gitlab/app/views/groups/settings/_permissions.html.haml

35 lines
1.9 KiB
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors js-general-permissions-form' }, authenticity_token: true do |f|
2018-11-20 20:47:30 +05:30
%input{ type: 'hidden', name: 'update_section', value: 'js-permissions-settings' }
2018-11-08 19:23:39 +05:30
= form_errors(@group)
%fieldset
2018-12-13 13:39:08 +05:30
%h5= _('Permissions')
.form-group
= render 'shared/allow_request_access', form: f
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
.form-group.append-bottom-default
.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-10-12 21:52:04 +05:30
%span.d-block
2018-12-13 13:39:08 +05:30
- 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 }
%span.descr.text-muted= share_with_group_lock_help_text(@group)
2018-11-08 19:23:39 +05:30
2019-10-12 21:52:04 +05:30
.form-group.append-bottom-default
.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.')
2019-09-04 21:01:54 +05:30
= render_if_exists 'groups/settings/ip_restriction', f: f, group: @group
2019-10-12 21:52:04 +05:30
= render_if_exists 'groups/settings/allowed_email_domain', f: f, group: @group
2018-12-13 13:39:08 +05:30
= render 'groups/settings/lfs', f: f
2019-07-07 11:18:12 +05:30
= render 'groups/settings/project_creation_level', f: f, group: @group
2019-10-12 21:52:04 +05:30
= render 'groups/settings/subgroup_creation_level', f: f, group: @group
2018-12-13 13:39:08 +05:30
= render 'groups/settings/two_factor_auth', f: f
2018-11-08 19:23:39 +05:30
= render_if_exists 'groups/member_lock_setting', f: f, group: @group
2018-12-13 13:39:08 +05:30
= f.submit _('Save changes'), class: 'btn btn-success prepend-top-default js-dirty-submit'