2022-03-14 06:07:47 +00:00
|
|
|
= form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-search-limits-settings'), html: { class: 'fieldset-form' } do |f|
|
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-03-17 18:08:54 +00:00
|
|
|
= f.label :search_rate_limit, _('Maximum number of requests per minute for an authenticated user'), class: 'label-bold'
|
2022-03-14 06:07:47 +00:00
|
|
|
.form-text.gl-text-gray-600
|
|
|
|
= _("Set this number to 0 to disable the limit.")
|
2022-03-17 18:08:54 +00:00
|
|
|
= f.number_field :search_rate_limit, class: 'form-control gl-form-input'
|
2022-03-14 06:07:47 +00:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :search_rate_limit_unauthenticated, _('Maximum number of requests per minute for an unauthenticated IP address'), class: 'label-bold'
|
|
|
|
= f.number_field :search_rate_limit_unauthenticated, class: 'form-control gl-form-input'
|
|
|
|
|
|
|
|
|
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }
|