2019-12-26 22:10:19 +05:30
|
|
|
- expanded = integration_expanded?('snowplow_')
|
2019-10-12 21:52:04 +05:30
|
|
|
%section.settings.as-snowplow.no-animate#js-snowplow-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Snowplow')
|
|
|
|
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
|
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= _('Configure the %{link} integration.').html_safe % { link: link_to('Snowplow', 'https://snowplowanalytics.com/', target: '_blank') }
|
|
|
|
.settings-content
|
2020-10-24 23:57:45 +05:30
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-snowplow-settings'), html: { class: 'fieldset-form' } do |f|
|
2019-12-26 22:10:19 +05:30
|
|
|
= form_errors(@application_setting) if expanded
|
2019-10-12 21:52:04 +05:30
|
|
|
|
|
|
|
%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'
|
|
|
|
= f.text_field :snowplow_collector_hostname, class: 'form-control', placeholder: 'snowplow.example.com'
|
|
|
|
.form-group
|
2019-12-26 22:10:19 +05:30
|
|
|
= f.label :snowplow_app_id, _('App ID'), class: 'label-light'
|
|
|
|
= f.text_field :snowplow_app_id, class: 'form-control'
|
2019-10-12 21:52:04 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :snowplow_cookie_domain, _('Cookie domain'), class: 'label-light'
|
|
|
|
= f.text_field :snowplow_cookie_domain, class: 'form-control'
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :snowplow_iglu_registry_url, _('Iglu registry URL (optional)'), class: 'label-light'
|
|
|
|
= f.text_field :snowplow_iglu_registry_url, class: 'form-control'
|
2019-10-12 21:52:04 +05:30
|
|
|
|
|
|
|
= f.submit _('Save changes'), class: 'btn btn-success'
|