{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set fullPageForm = true %} {% set saveShortcutRedirect = continueEditingUrl %} {% block content %} {{ actionInput('vend/import-profiles/save') }} {{ redirectInput('vend/settings/import-profiles') }} {% if profile.id %}{% endif %} {{ forms.textField({ first: true, label: "Name"|t('app'), instructions: "What this profile will be called in the CP."|t('vend'), id: 'name', name: 'name', value: profile.name, errors: profile.getErrors('name'), autofocus: true, required: true, }) }} {{ forms.textField({ label: "Handle"|t('app'), instructions: "How you’ll refer to this profile in the import URLs."|t('vend'), id: 'handle', name: 'handle', class: 'code', autocorrect: false, autocapitalize: false, value: profile.handle, errors: profile.getErrors('handle'), required: true }) }} {% set map = profile.getMap() %}
Vend Product Types |
|
|---|---|
| {{ forms.multiselectField({ label: "Included"|t('vend'), id: 'mapProductTypesIncluded', name: 'map[productTypes][included]', values: map['productTypes'] is defined ? map['productTypes']['included']: null, options: vendProductTypes, class: 'selectize fullwidth', }) }} | {{ forms.multiselectField({ label: "Excluded"|t('vend'), id: 'mapProductTypesExcluded', name: 'map[productTypes][excluded]', values: map['productTypes'] is defined ? map['productTypes']['excluded']: null, options: vendProductTypes, class: 'selectize fullwidth', }) }} |
Vend Brands |
|
| {{ forms.multiselectField({ label: "Included"|t('vend'), id: 'mapBrandsIncluded', name: 'map[brands][included]', values: map['brands'] is defined ? map['brands']['included']: null, options: vendBrands, class: 'selectize fullwidth', }) }} | {{ forms.multiselectField({ label: "Excluded"|t('vend'), id: 'mapBrandsExcluded', name: 'map[brands][excluded]', values: map['brands'] is defined ? map['brands']['excluded']: null, options: vendBrands, class: 'selectize fullwidth', }) }} |
Vend Suppliers |
|
| {{ forms.multiselectField({ label: "Included"|t('vend'), id: 'mapSuppliersIncluded', name: 'map[suppliers][included]', values: map['suppliers'] is defined ? map['suppliers']['included']: null, options: vendSuppliers, class: 'selectize fullwidth', }) }} | {{ forms.multiselectField({ label: "Excluded"|t('vend'), id: 'mapSuppliersExcluded', name: 'map[suppliers][excluded]', values: map['suppliers'] is defined ? map['suppliers']['excluded']: null, options: vendSuppliers, class: 'selectize fullwidth', }) }} |
Vend Tags |
|
| {{ forms.multiselectField({ label: "Included"|t('vend'), id: 'mapTagsIncluded', name: 'map[tags][included]', values: map['tags'] is defined ? map['tags']['included']: null, options: vendTags, class: 'selectize fullwidth', }) }} | {{ forms.multiselectField({ label: "Excluded"|t('vend'), id: 'mapTagsExcluded', name: 'map[tags][excluded]', values: map['tags'] is defined ? map['tags']['excluded']: null, options: vendTags, class: 'selectize fullwidth', }) }} |