debian-mirror-gitlab/app/views/groups/settings/_permissions.html.haml

25 lines
1.1 KiB
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors js-general-permissions-form' }, authenticity_token: true do |f|
2018-11-20 20:47:30 +05:30
%input{ type: 'hidden', name: 'update_section', value: 'js-permissions-settings' }
2018-11-08 19:23:39 +05:30
= form_errors(@group)
%fieldset
2018-12-13 13:39:08 +05:30
%h5= _('Permissions')
.form-group
= render 'shared/allow_request_access', form: f
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
.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)
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
= render 'groups/settings/lfs', f: f
= render 'groups/settings/two_factor_auth', f: f
2018-11-08 19:23:39 +05:30
= render_if_exists 'groups/member_lock_setting', f: f, group: @group
2018-12-13 13:39:08 +05:30
= f.submit _('Save changes'), class: 'btn btn-success prepend-top-default js-dirty-submit'