File: _new_group_fields.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (35 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
- parent = @group.parent
- submit_label = parent ? s_('GroupsNew|Create subgroup') : s_('GroupsNew|Create group')
= form_errors(@group)
= render 'shared/groups/group_name_and_path_fields', f: f, autofocus: true, new_subgroup: !!parent

.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.md"), 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

- unless parent
  - if Gitlab.config.mattermost.enabled
    .row
      = render 'create_chat_team', f: f

  - unless Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
    = render 'personalize', f: f

  .row.js-invite-members-section
    .col-sm-4
      = render_if_exists 'shared/groups/invite_members'

  - if captcha_required?
    .row.recaptcha
      .col-sm-4
        = recaptcha_tags nonce: content_security_policy_nonce
.row
  .col-sm-12
    = f.submit submit_label, pajamas_button: true, data: { testid: 'create-group-button' }
    = render Pajamas::ButtonComponent.new(href: @parent_group || dashboard_groups_path) do
      = _('Cancel')