{% import '_includes/forms' as forms %} {% import 'verbb-base/_macros' as macros %} {% do view.registerTranslations('hyper', [ 'New link type', 'Select a link type to edit.', 'Link Fields', 'Configure the fields and UI elements available to links. Elements in the first tab will be always be shown, while any other tabs will be shown in a slide-out panel.', 'Are you sure you want to delete “{name}”?', ]) %} {% set linkTypeOptions = [] %} {% for linkType in linkTypes %} {% set linkTypeOptions = linkTypeOptions | merge([{ label: linkType.label, value: linkType.handle }]) %} {% endfor %} {{ forms.selectField({ label: 'Default Link Type' | t('hyper'), instructions: 'Select the default link type.' | t('hyper'), name: 'defaultLinkType', value: field.defaultLinkType, options: linkTypeOptions, errors: field.getErrors('defaultLinkType'), }) }} {{ forms.lightswitchField({ label: 'Enable New Window' | t('hyper'), instructions: 'Whether to show the "Open in New Window" option for links.' | t('hyper'), name: 'newWindow', on: field.newWindow, errors: field.getErrors('newWindow'), toggle: 'new-window-options', }) }}
{{ 'Configure the types of links available for users to pick from.' | t('hyper') }}