Commit 44fddc2a authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'clenneville-migrate-checkbox-protected-paths' into 'master'

Migrate Protected Path setting to new checkbox

See merge request gitlab-org/gitlab!84825
parents ce4e32db 96fb60c8
= form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-protected-paths-settings'), html: { class: 'fieldset-form' } do |f| = gitlab_ui_form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-protected-paths-settings'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting) = form_errors(@application_setting)
%fieldset %fieldset
.form-group .form-group
.form-check = f.gitlab_ui_checkbox_component :throttle_protected_paths_enabled,
= f.check_box :throttle_protected_paths_enabled, class: 'form-check-input' _('Enable rate limiting for POST requests to the specified paths'),
= f.label :throttle_protected_paths_enabled, class: 'form-check-label' do help_text: _('Helps reduce request volume for protected paths.')
= _('Enable rate limiting for POST requests to the specified paths')
%span.form-text.text-muted
= _('Helps reduce request volume for protected paths.')
.form-group .form-group
= f.label :throttle_protected_paths_requests_per_period, 'Maximum requests per period per user', class: 'label-bold' = f.label :throttle_protected_paths_requests_per_period, 'Maximum requests per period per user', class: 'label-bold'
= f.number_field :throttle_protected_paths_requests_per_period, class: 'form-control gl-form-input' = f.number_field :throttle_protected_paths_requests_per_period, class: 'form-control gl-form-input'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment