{% import "_includes/forms" as forms %} {{ forms.textField({ label: "Placeholder Text"|t('app'), instructions: "The text that will be shown if the field doesn’t have a value."|t('app'), id: 'placeholder', name: 'placeholder', value: field.placeholder, errors: field.getErrors('placeholder') }) }} {{ forms.textField({ label: "Character Limit"|t('app'), instructions: "The maximum number of characters the field is allowed to have."|t('app'), id: 'char-limit', name: 'charLimit', value: field.charLimit, size: 3, errors: field.getErrors('charLimit') }) }} {{ forms.checkboxField({ label: "Use a monospaced font"|t('app'), name: 'code', checked: field.code, }) }} {{ forms.checkboxField({ label: "Allow line breaks"|t('app'), name: 'multiline', checked: field.multiline, toggle: 'initialRowsContainer' }) }}
{{ forms.textField({ label: "Initial Rows"|t('app'), id: 'initialRows', name: 'initialRows', value: field.initialRows, size: 3, errors: field.getErrors('initialRows') }) }}
{% if craft.app.db.isMysql %}
{{ "Advanced"|t('app') }} {% endif %}