{% import "_includes/forms" as forms %} {{ forms.textField({ label: "Placeholder Text"|t, instructions: "The text that will be shown if the field doesn’t have a value."|t, id: 'placeholder', name: 'placeholder', value: settings.placeholder, translatable: true, errors: settings.getErrors('placeholder') }) }} {% set maxLengthInput %} {{ forms.text({ id: 'maxLength', name: 'maxLength', value: settings.maxLength, size: 3, errors: settings.getErrors('maxLength') }) }} {{ forms.select({ name: 'maxLengthUnit', options: { words: "words"|t, chars: "characters"|t }, value: settings.maxLengthUnit }) }} {% endset %} {{ forms.field({ label: "Max Length"|t, id: 'maxLength', errors: settings.getErrors('maxLength') }, maxLengthInput) }} {{ forms.checkboxField({ label: "Allow line breaks"|t, name: 'multiline', checked: settings.multiline, toggle: 'initialRowsContainer' }) }}