2019-11-04 01:06:46 -05:00
|
|
|
- expanded = integration_expanded?('snowplow_')
|
2019-08-14 15:21:58 -04:00
|
|
|
%section.settings.as-snowplow.no-animate#js-snowplow-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Snowplow')
|
2020-11-16 07:09:05 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-08-14 15:21:58 -04:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= _('Configure the %{link} integration.').html_safe % { link: link_to('Snowplow', 'https://snowplowanalytics.com/', target: '_blank') }
|
|
|
|
.settings-content
|
2021-04-15 05:09:03 -04:00
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-snowplow-settings'), html: { class: 'fieldset-form', id: 'snowplow-settings' } do |f|
|
2019-11-04 01:06:46 -05:00
|
|
|
= form_errors(@application_setting) if expanded
|
2019-08-14 15:21:58 -04:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :snowplow_enabled, class: 'form-check-input'
|
|
|
|
= f.label :snowplow_enabled, _('Enable snowplow tracking'), class: 'form-check-label'
|
|
|
|
.form-group
|
|
|
|
= f.label :snowplow_collector_hostname, _('Collector hostname'), class: 'label-light'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.text_field :snowplow_collector_hostname, class: 'form-control gl-form-input', placeholder: 'snowplow.example.com'
|
2019-08-14 15:21:58 -04:00
|
|
|
.form-group
|
2019-11-08 16:06:38 -05:00
|
|
|
= f.label :snowplow_app_id, _('App ID'), class: 'label-light'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.text_field :snowplow_app_id, class: 'form-control gl-form-input'
|
2019-08-14 15:21:58 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :snowplow_cookie_domain, _('Cookie domain'), class: 'label-light'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.text_field :snowplow_cookie_domain, class: 'form-control gl-form-input'
|
2019-08-14 15:21:58 -04:00
|
|
|
|
2021-03-09 10:08:59 -05:00
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'
|