{ifset $errors} {/ifset} {import forms.html}
{include input, name: 'post[title]', value: ($post->title), maxlength: 100, required: true, autofocus: true}
{include textarea, name: 'post[body]', required: true, value: ($post->body)}
{include textarea, name: 'post[summary]', value: ($post->summary)}
{_'meta_data'}
{include input, name: 'post[slug]', value: ($post->slug), maxlength: 100, placeholder: ('auto_generate_from_title'|translate)}
{include textarea, name: 'post[description]', value: ($post->description)}
{include select, name: 'post[language]', value: ($post->language), options: languageNames()}
{_'settings'}
{var $statuses = ['draft'|translate, 'published'|translate, 'hidden'|translate]}
{include select, name: 'post[status]', value: ($post->status), options: $statuses}
{include input, name: 'post[publication_date]', value: ($post->publication_date), type: 'date', required: true}
{include input, name: 'post[publication_time]', value: (substr( $post->publication_time, 0, -3 )), type: 'time', required: true}
{include input, name: 'post[tagnames]', value: ($post->tagnames)}
  • {include input, name: 'post[allow_comments]', value: 1, type: 'checkbox', checked: ($post->allow_comments)}
{include input, name: 'save', value: ( 'save'|translate ), type: 'submit', class: 'ink-button green'} {include input, name: 'continue', value: ( 'save_and_continue'|translate ), type: 'submit', class: 'ink-button green'} {_'or'} {('cancel'|translate|lower)}