{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set content %}
{% if section.type == 'single' %} {% else %} {% endif %} {% if entryType.id %}{% endif %} {{ forms.textField({ first: true, label: "Name"|t, instructions: "What this entry type will be called in the CP."|t, id: 'name', name: 'name', value: entryType.name, errors: entryType.getErrors('name'), autofocus: true, required: true }) }} {{ forms.textField({ label: "Handle"|t, instructions: "How you’ll refer to this entry type in the templates."|t, id: 'handle', class: 'code', name: 'handle', value: entryType.handle, errors: entryType.getErrors('handle'), required: true }) }} {% if section.type != 'single' %}
{{ forms.checkboxField({ label: "Show title fields"|t, name: 'hasTitleField', toggle: 'titleLabel-container', reverseToggle: 'titleFormat-container', checked: entryType.hasTitleField }) }} {% endif %}
{% include "_includes/fieldlayoutdesigner" with { fieldLayout: entryType.getFieldLayout(), } only %}
{% endset %} {% if not entryType.handle %} {% includeJs "new Craft.HandleGenerator('#name', '#handle');" %} {% endif %}