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

58 lines
3.5 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' }
2022-10-11 01:57:18 +05:30
= form_errors(@group)
2018-11-08 19:23:39 +05:30
%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,
2022-08-13 15:12:31 +05:30
s_('GroupSettings|Members cannot invite 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,
2022-08-13 15:12:31 +05:30
s_('GroupSettings|Projects in %{group} cannot be shared with other groups').html_safe % { group: link_to_group(@group) },
2021-10-27 15:23:28 +05:30
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,
2022-08-13 15:12:31 +05:30
s_('GroupSettings|Email notifications are disabled'),
2021-10-27 15:23:28 +05:30
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,
2022-08-13 15:12:31 +05:30
s_('GroupSettings|Group mentions are disabled'),
2021-10-27 15:23:28 +05:30
checkbox_options: { checked: @group.mentions_disabled? },
2022-08-13 15:12:31 +05:30
help_text: s_('GroupSettings|Group members are not notified if the group is mentioned.')
2020-01-01 13:55:28 +05:30
2022-03-02 08:16:31 +05:30
= render 'groups/settings/resource_access_token_creation', f: f, group: @group
2023-06-20 00:43:36 +05:30
- unless Feature.enabled?(:always_perform_delayed_deletion)
= render_if_exists 'groups/settings/delayed_project_removal', f: f, group: @group
2022-03-02 08:16:31 +05:30
= render 'groups/settings/ip_restriction_registration_features_cta', f: f
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
2022-07-16 23:28:13 +05:30
- if @group.licensed_feature_available?(:group_wikis)
2022-06-21 17:19:12 +05:30
= render_if_exists 'groups/settings/wiki', f: f, group: @group
2018-12-13 13:39:08 +05:30
= render 'groups/settings/lfs', f: f
2023-06-20 00:43:36 +05:30
= render_if_exists 'groups/settings/code_suggestions', f: f, group: @group
2022-07-23 23:45:48 +05:30
= render 'groups/settings/git_access_protocols', 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
2022-03-02 08:16:31 +05:30
2022-07-23 23:45:48 +05:30
%h5= _('Customer relations')
.form-group.gl-mb-3
= f.gitlab_ui_checkbox_component :crm_enabled,
2022-08-13 15:12:31 +05:30
s_('GroupSettings|Customer relations is enabled'),
2022-07-23 23:45:48 +05:30
checkbox_options: { checked: @group.crm_enabled? },
2022-08-13 15:12:31 +05:30
help_text: s_('GroupSettings|Organizations and contacts can be created and associated with issues.')
2022-03-02 08:16:31 +05:30
2023-03-04 22:38:38 +05:30
= f.submit _('Save changes'), pajamas_button: true, class: 'gl-mt-3 js-dirty-submit', data: { qa_selector: 'save_permissions_changes_button' }