{% extends "_layouts/cp" %} {% set fullPageForm = true %} {% import "_includes/forms" as forms %} {% set crumbs = [ { label: "Settings"|t('analytics'), url: url('settings') }, { label: "Plugins"|t('analytics'), url: url('settings/plugins') }, { label: "Analytics"|t('analytics'), url: url('analytics/settings') }, { label: "Sites"|t('analytics'), url: url('analytics/settings/sites') } ] %} {% set title = site.name %} {% set content %} {{ redirectInput('analytics/settings/sites') }} {% set reportingViewOptions = [{ label: "None", value: "" }] %} {% for reportingView in reportingViews %} {% set reportingViewOptions = reportingViewOptions|merge([{ label: reportingView.name, value: reportingView.id }]) %} {% endfor %} {{ forms.selectField({ first: true, label: "View", instructions: "Select the view this site should be attached to."|t('analytics'), name: 'viewId', options: reportingViewOptions, value: (siteView.viewId is defined ? siteView.viewId : '') }) }} {% endset %}