diff options
| author | Christian Fowler <spider@viovio.com> | 2006-11-18 16:34:28 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-11-18 16:34:28 +0000 |
| commit | f4185fbaa2fcefa6884be1ceac55f91e9298cdc8 (patch) | |
| tree | a5b7f4526f1a06a266ce2873606077ccf4a97ccd /templates/edit_blog.tpl | |
| parent | d2ec043d9b327c79a75cc0dfb0782616b748ff04 (diff) | |
| download | blogs-f4185fbaa2fcefa6884be1ceac55f91e9298cdc8.tar.gz blogs-f4185fbaa2fcefa6884be1ceac55f91e9298cdc8.tar.bz2 blogs-f4185fbaa2fcefa6884be1ceac55f91e9298cdc8.zip | |
add services handling
Diffstat (limited to 'templates/edit_blog.tpl')
| -rw-r--r-- | templates/edit_blog.tpl | 127 |
1 files changed, 68 insertions, 59 deletions
diff --git a/templates/edit_blog.tpl b/templates/edit_blog.tpl index ae64409..87958ad 100644 --- a/templates/edit_blog.tpl +++ b/templates/edit_blog.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/edit_blog.tpl,v 1.13 2006/11/18 16:16:37 spiderr Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/edit_blog.tpl,v 1.14 2006/11/18 16:34:28 spiderr Exp $ *} {strip} <div class="floaticon">{bithelp}</div> @@ -27,71 +27,80 @@ {/if} {form ipackage="blogs" ifile="edit.php"} - {legend legend="Blog Settings"} - <input type="hidden" name="blog_id" value="{$gBlog->getField('blog_id')}" /> - <div class="row"> - {formfeedback warning=$warning} - {formlabel label="Title" for="title"} - {forminput} - <input type="text" name="title" id="title" value="{if $gBlog->getTitle()}{$gBlog->getTitle()|escape}{else}{displayname hash=$gBitUser->mInfo nolink=FALSE}'s Blog{/if}" /> - {/forminput} - </div> + {jstabs} + {jstab title="Blog Settings"} + {legend legend="Blog Settings"} + <input type="hidden" name="blog_id" value="{$gBlog->getField('blog_id')}" /> + <div class="row"> + {formfeedback warning=$warning} + {formlabel label="Title" for="title"} + {forminput} + <input type="text" name="title" id="title" value="{if $gBlog->getTitle()}{$gBlog->getTitle()|escape}{else}{displayname hash=$gBitUser->mInfo nolink=FALSE}'s Blog{/if}" /> + {/forminput} + </div> - <div class="row"> - {formlabel label="Description" for="edit"} - {forminput} - <textarea name="edit" id="edit" rows="2" cols="50">{$gBlog->getField('data')|escape}</textarea> - {formhelp note=''} - {/forminput} - </div> + <div class="row"> + {formlabel label="Description" for="edit"} + {forminput} + <textarea name="edit" id="edit" rows="2" cols="50">{$gBlog->getField('data')|escape}</textarea> + {formhelp note=''} + {/forminput} + </div> - <div class="row"> - {formlabel label="Number of posts to show" for="max_posts"} - {forminput} - <input type="text" name="max_posts" id="max_posts" value="{$gBlog->getField('max_posts')|escape|default:10}" /> - {formhelp note='Enter the number of blog posts you wish to display when viewing this blog.'} - {/forminput} - </div> + <div class="row"> + {formlabel label="Number of posts to show" for="max_posts"} + {forminput} + <input type="text" name="max_posts" id="max_posts" value="{$gBlog->getField('max_posts')|escape|default:10}" /> + {formhelp note='Enter the number of blog posts you wish to display when viewing this blog.'} + {/forminput} + </div> - {if $gBitUser->hasPermission('p_blogs_create_is_public')} - <div class="row"> - {formlabel label="Public" for="is_public"} - {forminput} - <input type="checkbox" name="is_public" id="is_public" {if $is_public eq 'y'}checked="checked"{/if} /> - {formhelp note='Allow other user to post in this blog'} - {/forminput} - </div> - {/if} + {if $gBitUser->hasPermission('p_blogs_create_is_public')} + <div class="row"> + {formlabel label="Public" for="is_public"} + {forminput} + <input type="checkbox" name="is_public" id="is_public" {if $gBlog->getField('is_public') eq 'y'}checked="checked"{/if} /> + {formhelp note='Allow other user to post in this blog'} + {/forminput} + </div> + {/if} - <div class="row"> - {formlabel label="Use titles in blog posts" for="use_title"} - {forminput} - <input type="checkbox" name="use_title" id="use_title" {if !$use_title || $use_title eq 'y'}checked="checked"{/if} /> - {formhelp note='If this is not seelcted, the time and date of when the post was created will be displayed instead of the post title.'} - {/forminput} - </div> + <div class="row"> + {formlabel label="Use titles in blog posts" for="use_title"} + {forminput} + <input type="checkbox" name="use_title" id="use_title" {if !$gBlog->isValid() || $gBlog->getField('use_title') eq 'y'}checked="checked"{/if} /> + {formhelp note='If this is not seelcted, the time and date of when the post was created will be displayed instead of the post title.'} + {/forminput} + </div> - <div class="row"> - {formlabel label="Allow search" for="use_find"} - {forminput} - <input type="checkbox" name="use_find" id="use_find" {if !$use_find || $use_find eq 'y'}checked="checked"{/if} /> - {formhelp note='Allow userers to search this blog for occurances of words.'} - {/forminput} - </div> + <div class="row"> + {formlabel label="Allow search" for="use_find"} + {forminput} + <input type="checkbox" name="use_find" id="use_find" {if !$gBlog->isValid() || $gBlog->getField('use_find') eq 'y'}checked="checked"{/if} /> + {formhelp note='Allow userers to search this blog for occurances of words.'} + {/forminput} + </div> - <div class="row"> - {formlabel label="Allow comments" for="allow_comments"} - {forminput} - <input type="checkbox" name="allow_comments" id="allow_comments" {if !$allow_comments || $allow_comments eq 'y'}checked="checked"{/if} /> - {formhelp note='Are other users allowed to add comments to posts made in this blog?'} - {/forminput} - </div> + <div class="row"> + {formlabel label="Allow comments" for="allow_comments"} + {forminput} + <input type="checkbox" name="allow_comments" id="allow_comments" {if !$gBlog->isValid() || $gBlog->getField('allow_comments') eq 'y'}checked="checked"{/if} /> + {formhelp note='Are other users allowed to add comments to posts made in this blog?'} + {/forminput} + </div> - <div class="row submit"> - <input type="submit" name="preview" value="{tr}preview{/tr}" /> - <input type="submit" name="save_blog" value="{tr}save{/tr}" /> - </div> - {/legend} + {include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_mini_tpl} + + <div class="row submit"> + <input type="submit" name="preview" value="{tr}preview{/tr}" /> + <input type="submit" name="save_blog" value="{tr}save{/tr}" /> + </div> + {/legend} + {/jstab} + + {include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_tab_tpl} + + {/jstabs} {/form} </div><!-- end .body --> |
