{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set extraPageHeaderHtml %} {% if craft.hasPackage('Localize') %}
{% endif %} {% if entry.id and craft.hasPackage('PublishPro') %} {% include "entries/_revisions" %} {% endif %} {% endset %} {% set content %} {% if showPreviewBtn %}
Preview Mode
{% endif %}
{% if entry.id %} {% endif %} {% if craft.hasPackage('Localize') %} {% endif %} {{ forms.textField({ label: section.titleLabel, id: 'title', name: 'title', value: entry.title, errors: entry.getErrors('title'), first: true, autofocus: true, required: true }) }} {% for tab in section.getFieldLayout().getTabs() %} {% endfor %}
{% if entry.id and entry.classHandle == 'EntryDraft' %} {% if user.can('publishEntries'~permissionSuffix) and (entry.creatorId == user.id or user.can('publishPeerEntryDrafts'~permissionSuffix)) %} {% endif %} {% elseif entry.id and entry.classHandle == 'EntryVersion' %} {% else %} {% if not entry.id or not entry.enabled or user.can('publishEntries'~permissionSuffix) %} {% if blx.hasPackage('PublishPro') %} {% else %} {% endif %} {% if entry.id and craft.hasPackage('PublishPro') %} {% endif %} {% else %} {% if craft.hasPackage('PublishPro') %} {% endif %} {% endif %} {% endif %}
{% endset %} {% if not entry.slug %} {% includeJs "new Craft.SlugGenerator('#title', '#slug');" %} {% endif %}