2022-08-27 11:52:29 +05:30
|
|
|
- parent = @group.parent
|
|
|
|
- submit_label = parent ? s_('GroupsNew|Create subgroup') : s_('GroupsNew|Create group')
|
2022-10-11 01:57:18 +05:30
|
|
|
= form_errors(@group)
|
2022-08-27 11:52:29 +05:30
|
|
|
= render 'shared/groups/group_name_and_path_fields', f: f, autofocus: true, new_subgroup: !!parent
|
2020-06-23 00:09:42 +05:30
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
.row
|
|
|
|
.form-group.gl-form-group.col-sm-12
|
|
|
|
%label.label-bold
|
|
|
|
= _('Visibility level')
|
|
|
|
%p
|
|
|
|
= _('Who will be able to see this group?')
|
|
|
|
= link_to _('View the documentation'), help_page_path("user/public_access"), target: '_blank', rel: 'noopener noreferrer'
|
|
|
|
= render 'shared/visibility_level', f: f, visibility_level: default_group_visibility, can_change_visibility_level: true, form_model: @group, with_label: false
|
2021-11-11 11:23:49 +05:30
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
- unless parent
|
2022-08-27 11:52:29 +05:30
|
|
|
- if Gitlab.config.mattermost.enabled
|
|
|
|
.row
|
|
|
|
= render 'create_chat_team', f: f
|
2021-11-11 11:23:49 +05:30
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
- unless Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
|
|
|
|
= render 'personalize', f: f
|
2021-04-29 21:17:54 +05:30
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
.row.js-invite-members-section
|
2021-04-29 21:17:54 +05:30
|
|
|
.col-sm-4
|
2022-08-27 11:52:29 +05:30
|
|
|
= render_if_exists 'shared/groups/invite_members'
|
|
|
|
|
|
|
|
- if captcha_required?
|
|
|
|
.row.recaptcha
|
|
|
|
.col-sm-4
|
|
|
|
= recaptcha_tags nonce: content_security_policy_nonce
|
2021-02-22 17:27:13 +05:30
|
|
|
.row
|
2021-09-04 01:27:46 +05:30
|
|
|
.col-sm-12
|
2023-03-04 22:38:38 +05:30
|
|
|
= f.submit submit_label, pajamas_button: true, data: { qa_selector: 'create_group_button' }
|
2023-05-27 22:25:52 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(href: @parent_group || dashboard_groups_path) do
|
2023-03-04 22:38:38 +05:30
|
|
|
= _('Cancel')
|