2022-04-19 00:08:51 +00:00
|
|
|
= gitlab_ui_form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-performance-bar-settings'), html: { class: 'fieldset-form' } do |f|
|
2022-06-27 12:09:11 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true)
|
2018-03-28 16:48:53 +00:00
|
|
|
|
|
|
|
%fieldset
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2022-04-19 00:08:51 +00:00
|
|
|
= f.gitlab_ui_checkbox_component :performance_bar_enabled,
|
|
|
|
s_("Allow non-administrators access to the performance bar"),
|
|
|
|
checkbox_options: { data: { qa_selector: 'enable_performance_bar_checkbox' } }
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-07-27 15:09:49 +00:00
|
|
|
= f.label :performance_bar_allowed_group_path, _('Allow access to members of the following group'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :performance_bar_allowed_group_path, class: 'form-control gl-form-input', placeholder: 'my-org/my-group', value: @application_setting.performance_bar_allowed_group&.full_path
|
2018-03-28 16:48:53 +00:00
|
|
|
|
2021-04-01 15:08:54 +00:00
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm qa-save-changes-button'
|