2019-11-04 06:06:46 +00:00
|
|
|
- expanded = integration_expanded?('hide_third_party_')
|
|
|
|
%section.settings.as-third-party-offers.no-animate#js-third-party-offers-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2022-07-06 18:08:29 +00:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2022-01-07 03:14:36 +00:00
|
|
|
= _('Customer experience improvement and third-party offers')
|
2022-06-13 18:09:22 +00:00
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2019-11-04 06:06:46 +00:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2022-01-07 03:14:36 +00:00
|
|
|
= _('Control whether to display customer experience improvement content and third-party offers in GitLab.')
|
2019-11-04 06:06:46 +00:00
|
|
|
.settings-content
|
2022-04-14 00:08:35 +00:00
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-third-party-offers-settings'), html: { class: 'fieldset-form', id: 'third-party-offers-settings' } do |f|
|
2022-07-01 12:08:08 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true) if expanded
|
2018-07-10 13:20:05 +00:00
|
|
|
|
2019-11-04 06:06:46 +00:00
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-04-14 00:08:35 +00:00
|
|
|
= f.gitlab_ui_checkbox_component :hide_third_party_offers,
|
|
|
|
_('Do not display content for customer experience improvement and offers from third parties')
|
2018-07-10 13:20:05 +00:00
|
|
|
|
2021-03-09 15:08:59 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|