mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
83 lines
3.5 KiB
Smarty
83 lines
3.5 KiB
Smarty
|
{include file='header.tpl' menu='topic_action'}
|
||
|
|
||
|
|
||
|
{literal}
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
document.addEvent('domready', function() {
|
||
|
new Autocompleter.Request.HTML($('topic_tags'), DIR_WEB_ROOT+'/include/ajax/tagAutocompleter.php?security_ls_key='+LIVESTREET_SECURITY_KEY, {
|
||
|
'indicatorClass': 'autocompleter-loading', // class added to the input during request
|
||
|
'minLength': 2, // We need at least 1 character
|
||
|
'selectMode': 'pick', // Instant completion
|
||
|
'multiple': true // Tag support, by default comma separated
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
{/literal}
|
||
|
|
||
|
|
||
|
<div class="topic" style="display: none;">
|
||
|
<div class="content" id="text_preview"></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{if $sEvent=='add'}
|
||
|
<h2>{$aLang.topic_link_create}</h2>
|
||
|
{else}
|
||
|
<h2>{$aLang.topic_link_edit}</h2>
|
||
|
{/if}
|
||
|
|
||
|
|
||
|
<form action="" method="POST" enctype="multipart/form-data">
|
||
|
{hook run='form_add_topic_link_begin'}
|
||
|
|
||
|
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||
|
|
||
|
<p><label for="blog_id">{$aLang.topic_create_blog}</label><br />
|
||
|
<select name="blog_id" id="blog_id" onChange="ajaxBlogInfo(this.value);" class="input-200">
|
||
|
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||
|
{foreach from=$aBlogsAllow item=oBlog}
|
||
|
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()}</option>
|
||
|
{/foreach}
|
||
|
</select></p>
|
||
|
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
ajaxBlogInfo($('blog_id').value);
|
||
|
</script>
|
||
|
|
||
|
<p><label for="topic_title">{$aLang.topic_create_title}:</label><br />
|
||
|
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-wide" /><br />
|
||
|
<span class="note">{$aLang.topic_create_title_notice}</span></p>
|
||
|
|
||
|
<p><label for="topic_link_url">{$aLang.topic_link_create_url}:</label><br />
|
||
|
<input type="text" id="topic_link_url" name="topic_link_url" value="{$_aRequest.topic_link_url}" class="input-wide" /><br />
|
||
|
<span class="note">{$aLang.topic_link_create_url_notice}</span></p>
|
||
|
|
||
|
<p><label for="topic_text">{$aLang.topic_link_create_text}:</label><br />
|
||
|
<textarea name="topic_text" id="topic_text" rows="20" class="input-wide">{$_aRequest.topic_text}</textarea></p>
|
||
|
|
||
|
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label><br />
|
||
|
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-wide" /><br />
|
||
|
<span class="note">{$aLang.topic_create_tags_notice}</span></p>
|
||
|
|
||
|
<p><label for=""><input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||
|
{$aLang.topic_create_forbid_comment}</label><br />
|
||
|
<span class="note">{$aLang.topic_create_forbid_comment_notice}</span></p>
|
||
|
|
||
|
{if $oUserCurrent->isAdministrator()}
|
||
|
<p><label for=""><input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||
|
{$aLang.topic_create_publish_index}</label><br />
|
||
|
<span class="note">{$aLang.topic_create_publish_index_notice}</span></p>
|
||
|
{/if}
|
||
|
|
||
|
{hook run='form_add_topic_link_end'}
|
||
|
|
||
|
<input type="submit" name="submit_topic_publish" value="{$aLang.topic_create_submit_publish}" />
|
||
|
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',true); return false;" />
|
||
|
<input type="submit" name="submit_topic_save" value="{$aLang.topic_create_submit_save}" />
|
||
|
</form>
|
||
|
|
||
|
|
||
|
|
||
|
{include file='footer.tpl'}
|
||
|
|