2019-02-20 16:56:19 +00:00
|
|
|
= form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-performance-bar-settings'), html: { class: 'fieldset-form' } do |f|
|
2018-03-28 16:48:53 +00:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
2021-03-12 18:09:23 +00:00
|
|
|
= f.check_box :performance_bar_enabled, class: 'form-check-input', data: { qa_selector: 'enable_performance_bar_checkbox'}
|
|
|
|
= f.label :performance_bar_enabled, class: 'form-check-label' do
|
2021-04-01 15:08:54 +00:00
|
|
|
= _("Enable access to the Performance Bar")
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-04-01 15:08:54 +00:00
|
|
|
= f.label :performance_bar_allowed_group_path, _('Allowed 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'
|