summaryrefslogtreecommitdiff
path: root/app/views/groups/_new_group_fields.html.haml
blob: 64860c61082802799125f0799f26e257540fa4de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
= form_errors(@group)
= render 'shared/group_form', f: f, autofocus: true

.row
  .form-group.col-sm-12.gl-mb-0
    %label.label-bold
      = _('Visibility level')
    %p
      = _('Who will be able to see this group?')
      = link_to _('View the documentation'), help_page_path("public_access/public_access"), target: '_blank'
    = render 'shared/visibility_level', f: f, visibility_level: default_group_visibility, can_change_visibility_level: true, form_model: @group, with_label: false

- if Gitlab.config.mattermost.enabled
  .row
    = render 'create_chat_team', f: f
.row
  .col-sm-4
    = render_if_exists 'shared/groups/invite_members'
.row
  .form-actions.col-sm-12
    = f.submit _('Create group'), class: "btn gl-button btn-success"
    = link_to _('Cancel'), dashboard_groups_path, class: 'btn gl-button btn-default btn-cancel'