studioespresso/craft-exporter

View on GitHub
src/templates/_settings.twig

Summary

Maintainability
Test Coverage
{# @var plugin \studioespresso\exporter\Exporter #}
{# @var settings \studioespresso\exporter\models\Settings #}

{% import '_includes/forms.twig' as forms %}

{{ forms.textField({
    label: 'Sidebar label'|t('navigate'),
    instructions: 'You can change the plugin label in the CP sidebar here.'|t('exporter'),
    id: 'pluginLabel',
    name: 'pluginLabel',
    value: settings['pluginLabel']})
}}

{{ forms.autosuggestField({
    label: "HTML Email Template"|t('exporter'),
    instructions: "The template Craft CMS will use for HTML emails"|t('exporter'),
    id: 'emailTemplate',
    name: 'emailTemplate',
    suggestions: craft.cp.getTemplateSuggestions(),
    suggestEnvVars: true,
    value: settings.emailTemplate,
}) }}