summaryrefslogtreecommitdiff
path: root/app/views/groups/settings/_permissions.html.haml
blob: 0da1f1ba7f5c2399f805a6a7bc74146fa116bd6f (plain)
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
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors js-general-permissions-form' }, authenticity_token: true do |f|
  %input{ type: 'hidden', name: 'update_section', value: 'js-permissions-settings' }
  = form_errors(@group)

  %fieldset
    %h5= _('Permissions')
    .form-group
      = render 'shared/allow_request_access', form: f

    .form-group.append-bottom-default
      .form-check
        = f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group), class: 'form-check-input'
        = f.label :share_with_group_lock, class: 'form-check-label' do
          %span
            - group_link = link_to @group.name, group_path(@group)
            = s_('GroupSettings|Prevent sharing a project within %{group} with other groups').html_safe % { group: group_link }
          %br
          %span.descr.text-muted= share_with_group_lock_help_text(@group)

    = render_if_exists 'groups/settings/ip_restriction', f: f, group: @group
    = render 'groups/settings/lfs', f: f
    = render 'groups/settings/project_creation_level', f: f, group: @group
    = render 'groups/settings/two_factor_auth', f: f
    = render_if_exists 'groups/member_lock_setting', f: f, group: @group

  = f.submit _('Save changes'), class: 'btn btn-success prepend-top-default js-dirty-submit'