{if !$vars.ajax}

{"Create blog post"|gettext}

{/if} {if $action eq 'update'}
{else} {/if}

{"Associated ideas and challenges"|gettext}
{foreach from=$associatedPosts item=cAP} {/foreach}
{foreach from=$associatedCategories item=cAC} {/foreach}

{"Chosen files"|gettext}

{include file=Template::get('blogpost/form_fileList.html') noZoom=true}
{if (isset($errors.post_id))}
{$errors.post_id}
{/if}
{if (isset($errors.post_category))}
{$errors.post_category}
{/if}
{if (isset($errors.post_title))}
{$errors.post_title}
{/if}
{if (isset($errors.post_text))}
{$errors.post_text}
{/if}
{if $post->data.post_id ne 0}
{if $post->data.post_moderationstatus eq 4} {/if} {"Cancel"|gettext} {if $post->data.post_moderationstatus eq 4}{"Save to drafts"|gettext}{else}{"Publish"|gettext}{/if}
{else}
{"Cancel"|gettext} {"Publish"|gettext}
{/if}