{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/edit_blog.tpl,v 1.25 2008/07/03 15:28:05 wjames5 Exp $ *} {strip}
{bithelp}

{if $gContent->isValid()}{tr}Edit Blog{/tr}{else}{tr}Create Blog{/tr}{/if}

{if $smarty.request.preview}

{$title}

{if $parsed}

{$parsed}

{/if}
{tr}By{/tr}: {displayname user=$user_name}, {if $created}{$created|bit_short_datetime}{else}{$gContent->getField('created')|bit_short_datetime}{/if}
{/if} {form ipackage="blogs" ifile="edit.php"} {jstabs} {jstab title="Blog Settings"} {legend legend="Blog Settings"}
{formfeedback warning=$warning} {formlabel label="Title" for="title"} {forminput} {/forminput}
{textarea}{if $edit}{$edit}{else}{$gContent->getField('data')}{/if}{/textarea}
{formlabel label="Number of posts to show" for="max_posts"} {forminput} {formhelp note='Enter the number of blog posts you wish to display when viewing this blog.'} {/forminput}
{* DEPRECATED - Slated for removal -wjames5 {if $gBitUser->hasPermission('p_blogs_create_is_public')}
{formlabel label="Public" for="is_public"} {forminput} getField('is_public') eq 'y'}checked="checked"{/if} /> {formhelp note='Allow other user to post in this blog'} {/forminput}
{/if} *}
{formlabel label="Use titles in blog posts" for="use_title"} {forminput} isValid() || $gContent->getField('use_title') eq 'y'}checked="checked"{/if} /> {formhelp note='If this is not selected, the time and date of when the post was created will be displayed instead of the post title.'} {/forminput}
{formlabel label="Allow search" for="use_find"} {forminput} isValid() || $gContent->getField('use_find') eq 'y'}checked="checked"{/if} /> {formhelp note='Allow users to search this blog for occurances of words.'} {/forminput}
{formlabel label="Allow comments" for="allow_comments"} {forminput} isValid() || $gContent->getField('allow_comments') eq 'y'}checked="checked"{/if} /> {formhelp note='Are other users allowed to add comments to posts made in this blog?'} {/forminput}
{include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_mini_tpl}
 
{/legend} {/jstab} {include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_tab_tpl} {/jstabs} {/form}
{/strip}