summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_note_limits.html.haml
blob: 38a5d6a1010f3d50e94cd4cbfd194131598f6fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
= 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
      = f.label :notes_create_limit, _('Maximum requests per minute'), class: 'label-bold'
      = f.number_field :notes_create_limit, class: 'form-control gl-form-input'
    .form-group
      = f.label :notes_create_limit_allowlist, _('Users to exclude from the rate limit'), class: 'label-bold'
      = f.text_area :notes_create_limit_allowlist_raw, placeholder: 'username1, username2', class: 'form-control gl-form-input', rows: 5
      .form-text.text-muted
        = _('List of users allowed to exceed the rate limit.')


  = f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }