{% extends "_layouts/cp" %} {% set fullPageForm = true %} {% import "_includes/forms" as forms %} {% block content %} {{ redirectInput('settings/fields/{groupId}') }} {% if fieldId is defined and fieldId %} {% endif %} {{ forms.selectField({ first: true, label: "Group"|t('app'), instructions: "Which group should this field be displayed in?"|t('app'), id: 'group', name: 'group', options: groupOptions, value: groupId }) }} {{ forms.textField({ label: "Name"|t('app'), instructions: "What this field will be called in the CP."|t('app'), id: 'name', name: 'name', value: field.name, errors: field.getErrors('name'), required: true, autofocus: true }) }} {{ forms.textField({ label: "Handle"|t('app'), instructions: "How you’ll refer to this field in the templates."|t('app'), id: 'handle', class: 'code', name: 'handle', maxlength: 64, value: field.handle, errors: field.getErrors('handle'), required: true, }) }} {{ forms.textareaField({ label: "Instructions"|t('app'), instructions: "Helper text to guide the author."|t('app'), id: 'instructions', class: 'nicetext', name: 'instructions', value: field.instructions, errors: field.getErrors('instructions'), }) }} {{ forms.selectField({ label: "Field Type"|t('app'), instructions: "What type of field is this?"|t('app'), warning: (fieldId is not empty and not field.hasErrors('type') ? "Changing this may result in data loss."|t('app')), id: 'type', name: 'type', options: fieldTypeOptions, value: className(field), toggle: true }) }} {{ missingFieldPlaceholder|raw }} {% if craft.app.getIsMultiSite() %} {% set translationMethods = field.supportedTranslationMethods %} {% if translationMethods|length > 1 %}