{% import "_includes/forms" as forms %} {{ forms.selectField({ label: 'UI Mode'|t('app'), instructions: 'How the field should be presented in the control panel.'|t('app'), id: 'ui-mode', name: 'uiMode', options: [ {label: 'Normal'|t('app'), value: 'normal'}, {label: 'Enlarged'|t('app'), value: 'enlarged'}, ], value: field.uiMode, }) }} {{ 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') }) }} {% embed '_includes/forms/field' with { label: 'Field Limit'|t('app'), instructions: "The maximum number of characters or bytes the field is allowed to have."|t('app'), id: 'fieldLimit', errors: field.getErrors(field.byteLimit ? 'byteLimit' : 'charLimit') } %} {% import "_includes/forms" as forms %} {% block input %}