2021-02-09 21:09:19 +00:00
|
|
|
= form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-note-limits-settings'), html: { class: 'fieldset-form' } do |f|
|
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2021-09-13 18:11:46 +00:00
|
|
|
= f.label :notes_create_limit, _('Maximum requests per minute'), class: 'label-bold'
|
2021-02-09 21:09:19 +00:00
|
|
|
= f.number_field :notes_create_limit, class: 'form-control gl-form-input'
|
2021-02-11 12:08:52 +00:00
|
|
|
.form-group
|
2021-09-13 18:11:46 +00:00
|
|
|
= f.label :notes_create_limit_allowlist, _('Users to exclude from the rate limit'), class: 'label-bold'
|
2021-02-11 12:08:52 +00:00
|
|
|
= f.text_area :notes_create_limit_allowlist_raw, placeholder: 'username1, username2', class: 'form-control gl-form-input', rows: 5
|
2021-09-13 18:11:46 +00:00
|
|
|
.form-text.text-muted
|
2022-02-08 18:16:03 +00:00
|
|
|
= _('List of users allowed to exceed the rate limit.')
|
2021-09-13 18:11:46 +00:00
|
|
|
|
2021-02-09 21:09:19 +00:00
|
|
|
|
2021-03-09 15:08:59 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }
|