{% import '_includes/forms' as forms %} {{ forms.checkboxSelectField({ label: 'Sources' | t('app'), instructions: 'Which sources do you want to select {type} from?' | t('app', { type: pluralElementType }), name: 'sources', required: true, showAllOption: true, values: linkType.sources, options: linkType.sourceOptions, errors: linkType.getErrors('sources'), }) }} {{ forms.textField({ label: 'Selection Label' | t('app'), instructions: 'Enter the text you want to appear on the {type} selection input.' | t('app', { type: lowerElementType }), name: 'selectionLabel', value: linkType.selectionLabel, placeholder: linkType.defaultSelectionLabel(), errors: linkType.getErrors('selectionLabel'), }) }} {% if craft.app.getIsMultiSite() %} {{ forms.lightswitchField({ label: 'Show Site Menu' | t('hyper'), instructions: 'Whether to show the Site menu when selecting elements.' | t('hyper'), name: 'showSiteMenu', on: linkType.showSiteMenu, errors: linkType.getErrors('showSiteMenu'), }) }} {% endif %}