{% import '_includes/forms' as forms %} {% if configOptions|length > 1 %} {% set configInput %} {{ forms.select({ id: 'configFle', name: 'configFile', options: configOptions, value: field.configFile }) }} {% endset %} {% else %} {% set configInput %}

{{ 'You don’t have any Redactor configs yet.'|t('app')|raw }}

{% endset %} {% endif %} {% set columnType %} {{ forms.select({ id: 'columnType', name: 'columnType', options: columns, value: field.columnType }) }} {% endset %} {{ forms.field({ label: "Config"|t('app'), instructions: "You can save custom Redactor configs as .json files in config/redactor/."|t('app')~' '~"View available settings"|t('app')~'.', id: 'configFile' }, configInput) }} {{ forms.checkboxSelectField({ id: 'availableVolumes', name: 'availableVolumes', label: 'Available Volumes'|t, instructions: 'The volumes that should be available when selecting assets (if the selected config has an Image or File buttin).'|t, options: volumeOptions, value: 1, values: field.availableVolumes, }) }} {{ forms.checkboxSelectField({ id: 'availableTransforms', name: 'availableTransforms', label: 'Available Transforms'|t, instructions: 'The Transforms that should be available for Image selection.'|t, options: transformOptions, value: 1, values: field.availableTransforms, }) }} {{ forms.checkboxField({ label: "Clean up HTML?"|t('app'), instructions: "Removes <span>’s, empty tags, and most style attributes on save."|t('app'), id: 'cleanupHtml', name: 'cleanupHtml', checked: field.cleanupHtml }) }} {{ forms.checkboxField({ label: "Purify HTML?"|t('app'), instructions: 'Removes any potentially-malicious code on save, by running the submitted data through HTML Purifier.'|t('app'), warning: 'Disable this at your own risk!'|t('app'), id: 'purifyHtml', name: 'purifyHtml', checked: field.purifyHtml }) }} {{ forms.field({ label: "Column Type"|t('app'), instructions: "The underlying database column type to use when saving content."|t('app'), id: 'columnType', warning: (existing ? "Changing this may result in data loss."|t('app')), }, columnType) }}