{% extends "_layouts/cp" %} {% set entryTypes = section.getEntryTypes() %} {% set multiple = (entryTypes|length > 1) %} {% block actionButton %} {% if section.type != 'single' %} {{ "New entry type"|t('app') }} {% endif %} {% endblock %} {% block content %} {% if multiple %} {% endif %} {% for entryType in entryTypes %} {% if multiple %} {% endif %} {% endfor %}
{{ "Name"|t('app') }} {{ "Handle"|t('app') }}
{{ entryType.name|t('site') }} {{ entryType.handle }}
{% endblock %} {% if section.type != 'single' %} {% js %} new Craft.AdminTable({ tableSelector: '#entrytypes', deleteAction: 'sections/delete-entry-type', minItems: 1, sortable: true, reorderAction: 'sections/reorder-entry-types', confirmDeleteMessage: '{{ "Are you sure you want to delete “{name}” and all entries that use it?"|t('app') }}', }); {% endjs %} {% endif %}