2022-07-27 08:10:44 -04:00
|
|
|
- parent = @group.parent
|
|
|
|
- submit_label = parent ? s_('GroupsNew|Create subgroup') : s_('GroupsNew|Create group')
|
2022-08-18 17:12:09 -04:00
|
|
|
= form_errors(@group)
|
2022-07-27 08:10:44 -04:00
|
|
|
= render 'shared/groups/group_name_and_path_fields', f: f, autofocus: true, new_subgroup: !!parent
|
2020-06-16 08:09:00 -04:00
|
|
|
|
2022-09-09 05:14:13 -04:00
|
|
|
.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-08-26 08:10:28 -04:00
|
|
|
|
2022-09-09 05:14:13 -04:00
|
|
|
- unless parent
|
2022-07-27 08:10:44 -04:00
|
|
|
- if Gitlab.config.mattermost.enabled
|
|
|
|
.row
|
|
|
|
= render 'create_chat_team', f: f
|
2021-08-26 08:10:28 -04:00
|
|
|
|
2022-07-27 08:10:44 -04:00
|
|
|
- unless Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
|
|
|
|
= render 'personalize', f: f
|
2021-03-19 05:08:53 -04:00
|
|
|
|
2022-07-27 08:10:44 -04:00
|
|
|
.row.js-invite-members-section
|
2021-03-19 05:08:53 -04:00
|
|
|
.col-sm-4
|
2022-07-27 08:10:44 -04:00
|
|
|
= render_if_exists 'shared/groups/invite_members'
|
|
|
|
|
|
|
|
- if captcha_required?
|
|
|
|
.row.recaptcha
|
|
|
|
.col-sm-4
|
|
|
|
= recaptcha_tags nonce: content_security_policy_nonce
|
2020-12-15 16:09:53 -05:00
|
|
|
.row
|
2021-05-26 20:10:40 -04:00
|
|
|
.col-sm-12
|
2022-07-27 08:10:44 -04:00
|
|
|
= f.submit submit_label, class: "btn gl-button btn-confirm", data: { qa_selector: 'create_group_button' }
|
2021-02-11 07:08:52 -05:00
|
|
|
= link_to _('Cancel'), dashboard_groups_path, class: 'btn gl-button btn-default btn-cancel'
|