{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% includeTranslations "Live Preview" %} {% set extraPageHeaderHtml %} {% if craft.hasPackage('Localize') %}
{% endif %} {% if entry.id and craft.hasPackage('PublishPro') %} {% include "entries/_revisions" %} {% endif %} {% endset %} {% set continueEditingUrl = 'entries/'~section.handle~'/{id}'~(craft.hasPackage('Localize') and craft.locale != localeId ? '/'~localeId : '') %} {% set content %} {% if showPreviewBtn %}
{{ "Live Preview"|t }}
{% endif %}
{% if entry.id %} {% endif %} {% if craft.hasPackage('Localize') %} {% endif %} {% if showEntryTypes %} {{ forms.selectField({ label: "Entry Type"|t, id: 'entryType', name: 'typeId', value: entryType.id, options: entryTypeOptions, first: true }) }} {% endif %}
{% include "entries/_fields" %}
{% if section.type != 'single' %} {% endif %}
{% if entry.id and entry.classHandle == 'EntryDraft' %} {% if currentUser.can('publishEntries'~permissionSuffix) and (entry.creatorId == currentUser.id or currentUser.can('publishPeerEntryDrafts'~permissionSuffix)) %} {% endif %} {% if currentUser.can('publishEntries'~permissionSuffix) and (entry.creatorId == currentUser.id or currentUser.can('deletePeerEntryDrafts'~permissionSuffix)) %} {% endif %} {% elseif entry.id and entry.classHandle == 'EntryVersion' %} {% else %} {% if not entry.id or not entry.enabled or currentUser.can('publishEntries'~permissionSuffix) %}
{% if entry.id and craft.hasPackage('PublishPro') %} {% endif %} {% else %} {% if craft.hasPackage('PublishPro') %} {% endif %} {% endif %} {% endif %}
{% endset %} {% if not entry.slug %} {% includeJs "window.slugGenerator = new Craft.SlugGenerator('#title', '#slug');" %} {% endif %}