{% extends "_layouts/cp" %} {% set fullPageForm = true %} {% set formActions = [ { label: 'Save and continue editing'|t('app'), redirect: "settings/sections/#{section.id}/entrytypes/{id}"|hash, shortcut: true, retainScroll: true, }, ] %} {% import "_includes/forms" as forms %} {% block content %} {{ actionInput('sections/save-entry-type') }} {% if section.type == 'single' %} {{ redirectInput('settings/sections') }} {% else %} {{ redirectInput('settings/sections/'~section.id~'/entrytypes') }} {% endif %} {{ hiddenInput('sectionId', section.id) }} {% if entryType.id %}{{ hiddenInput('entryTypeId', entryType.id) }}{% endif %} {% if section.type != 'single' %} {{ forms.textField({ first: true, label: "Name"|t('app'), instructions: "What this entry type will be called in the control panel."|t('app'), id: 'name', name: 'name', value: entryType.name, errors: entryType.getErrors('name'), autofocus: true, required: true }) }} {{ forms.textField({ label: "Handle"|t('app'), instructions: "How you’ll refer to this entry type in the templates."|t('app'), id: 'handle', name: 'handle', class: 'code', autocorrect: false, autocapitalize: false, value: entryType.handle, errors: entryType.getErrors('handle'), required: true }) }}
{myCustomField}
' }),
id: 'titleFormat',
name: 'titleFormat',
class: 'code',
value: entryType.titleFormat,
errors: entryType.getErrors('titleFormat'),
required: true
}) }}