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

45 lines
2.8 KiB
Text
Raw Normal View History

2021-10-27 15:23:28 +05:30
= gitlab_ui_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')
2021-09-04 01:27:46 +05:30
- if @group.root?
.form-group.gl-mb-3
2021-10-27 15:23:28 +05:30
= f.gitlab_ui_checkbox_component :prevent_sharing_groups_outside_hierarchy,
2021-11-18 22:05:49 +05:30
s_('GroupSettings|Prevent members from sending invitations to groups outside of %{group} and its subgroups').html_safe % { group: link_to_group(@group) },
2021-10-27 15:23:28 +05:30
help_text: prevent_sharing_groups_outside_hierarchy_help_text(@group),
checkbox_options: { disabled: !can_change_prevent_sharing_groups_outside_hierarchy?(@group) }
2021-09-04 01:27:46 +05:30
2020-07-28 23:09:34 +05:30
.form-group.gl-mb-3
2021-10-27 15:23:28 +05:30
= f.gitlab_ui_checkbox_component :share_with_group_lock,
s_('GroupSettings|Prevent sharing a project within %{group} with other groups').html_safe % { group: link_to_group(@group) },
checkbox_options: { disabled: !can_change_share_with_group_lock?(@group) },
help_text: share_with_group_lock_help_text(@group)
2018-11-08 19:23:39 +05:30
2020-07-28 23:09:34 +05:30
.form-group.gl-mb-3
2021-10-27 15:23:28 +05:30
= f.gitlab_ui_checkbox_component :emails_disabled,
s_('GroupSettings|Disable email notifications'),
checkbox_options: { checked: @group.emails_disabled?, disabled: !can_disable_group_emails?(@group) },
2021-11-18 22:05:49 +05:30
help_text: s_('GroupSettings|Overrides user notification preferences for all members of the group, subgroups, and projects.')
2019-10-12 21:52:04 +05:30
2020-07-28 23:09:34 +05:30
.form-group.gl-mb-3
2021-10-27 15:23:28 +05:30
= f.gitlab_ui_checkbox_component :mentions_disabled,
s_('GroupSettings|Disable group mentions'),
checkbox_options: { checked: @group.mentions_disabled? },
2021-11-18 22:05:49 +05:30
help_text: s_('GroupSettings|Prevents group members from being notified if the group is mentioned.')
2020-01-01 13:55:28 +05:30
2021-04-29 21:17:54 +05:30
= render 'groups/settings/project_access_token_creation', f: f, group: @group
2020-07-28 23:09:34 +05:30
= render_if_exists 'groups/settings/delayed_project_removal', f: f, group: @group
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
2020-05-24 23:13:21 +05:30
= render 'groups/settings/default_branch_protection', f: f, group: @group
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
2020-10-24 23:57:45 +05:30
= render_if_exists 'groups/settings/prevent_forking', f: f, group: @group
2021-01-03 14:25:43 +05:30
= render 'groups/settings/two_factor_auth', f: f, group: @group
2020-04-22 19:07:51 +05:30
= render_if_exists 'groups/personal_access_token_expiration_policy', f: f, group: @group
2021-11-11 11:23:49 +05:30
= render 'groups/settings/membership', f: f, group: @group
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mt-3 js-dirty-submit', data: { qa_selector: 'save_permissions_changes_button' }