{form enctype="multipart/form-data" name="blogpost" id="editpageform"}
{legend legend="Crosspost"}
{* we loop over this twice because we want two separate lists from the same hash *}
{if $availableBlogs}
{formlabel label="Include in Blogs" for="blog_id"}
{forminput}
{foreach from=$availableBlogs key=blogContentId item=availBlogTitle}
{if !$gContent->mInfo.blogs.$blogContentId || ($blogContentId == $crosspost.blog_content_id) }
{assign var="has_crosspost_option" value=TRUE}
{$availBlogTitle|escape}
{/if}
{/foreach}
{if !$has_crosspost_option}
{formhelp note="This blog post has been crossposted to all blogs you have permission to cross post to."}
{else}
{formhelp note="You can cross post to any and all of the blogs listed above. Just check off the blogs you wish this post to also show up in."}
{/if}
{/forminput}
{/if}
{if $has_crosspost_option}
{formlabel label="Crosspost Note Format"}
{forminput}
{foreach name=formatPlugins from=$gLibertySystem->mPlugins item=plugin key=guid}
{if $plugin.edit_field eq $post_info.format_guid}
{$plugin.edit_label}
{/if}
{/foreach}
{/forminput}
{textarea id="crosspost_note" label="Crosspost Note (Optional)" name="crosspost_note" noformat="y" rows=6 help="Add a note you would like to appear above the post when viewed on the crossposted blog. This does not appear on the post page."}{$crosspost.crosspost_note}{/textarea}
{/if}
{/legend}
{/form}
{* ------this is the same as the guts of view_blog_post---- *}