1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/templates/skin/new/actions/ActionBlog/add.tpl
2010-04-25 16:33:49 +00:00

54 lines
2.8 KiB
Smarty

{if $sEvent=='add'}
{include file='header.tpl' menu='topic_action' showWhiteBack=true}
{else}
{include file='header.tpl' menu='blog_edit' showWhiteBack=true}
{/if}
{if $sEvent=='add'}
<h1>{$aLang.blog_create}</h1>
{else}
<h1>{$aLang.blog_admin}: <a href="{router page='blog'}{$oBlogEdit->getUrl()}/">{$oBlogEdit->getTitle()}</a></h1>
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_blog_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_title">{$aLang.blog_create_title}:</label><br />
<input type="text" id="blog_title" name="blog_title" value="{$_aRequest.blog_title}" class="w100p" /><br />
<span class="form_note">{$aLang.blog_create_title_notice}</span></p>
<p><label for="blog_url">{$aLang.blog_create_url}:</label><br />
<input type="text" id="blog_url" name="blog_url" value="{$_aRequest.blog_url}" class="w100p" {if $_aRequest.blog_id}disabled{/if} /><br />
<span class="form_note">{$aLang.blog_create_url_notice}</span></p>
<p><label for="blog_type">{$aLang.blog_create_type}:</label><br />
<select name="blog_type" id="blog_type" onChange="">
<option value="open" {if $_aRequest.blog_type=='open'}selected{/if}>{$aLang.blog_create_type_open}</option>
<option value="close" {if $_aRequest.blog_type=='close'}selected{/if}>{$aLang.blog_create_type_close}</option>
</select><br />
<span class="form_note">{$aLang.blog_create_type_open_notice}</span></p>
<p><label for="blog_description">{$aLang.blog_create_description}:</label><br />
<textarea name="blog_description" id="blog_description" rows="20">{$_aRequest.blog_description}</textarea><br />
<span class="form_note">{$aLang.blog_create_description_notice}</span></p>
<p><label for="blog_limit_rating_topic">{$aLang.blog_create_rating}:</label><br />
<input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="{$_aRequest.blog_limit_rating_topic}" class="w100p" /><br />
<span class="form_note">{$aLang.blog_create_rating_notice}</span></p>
<p>
{if $oBlogEdit and $oBlogEdit->getAvatar()}
<img src="{$oBlogEdit->getAvatarPath(48)}" />
<img src="{$oBlogEdit->getAvatarPath(24)}" />
<label for="avatar_delete"><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on"> &mdash; {$aLang.blog_create_avatar_delete}</label><br /><br />
{/if}
<label for="avatar">{$aLang.blog_create_avatar}:</label><br />
<input type="file" name="avatar" id="avatar"></p>
{hook run='form_add_blog_end'}
<p><input type="submit" name="submit_blog_add" value="{$aLang.blog_create_submit}">
<input type="hidden" name="blog_id" value="{$_aRequest.blog_id}"></p>
</form>
{include file='footer.tpl'}