{form name="topic_add_form"}
{input name="title"}
{error name="title"}
{input name="group"}
{error name="group"}
  • {input name="subscribe"} {label name="subscribe"}
    {error name="subscribe"}
{input name="text"}
{error name="text"}
{if $enableAttachments}
{/if}
{submit name="post"}
{/form}
{if $enableAttachments}
{$attachments}
{decorator name="button" langLabel="forum+clear_all" id="forum_add_topic_clear_files"} {decorator name="button" langLabel="forum+add_files" id="forum_add_topic_attach_files"}
{script} $( document ).ready(function() { var forumAddTopicAttachments = new ForumAttachments({ "attachmentUid" : "{$attachmentUid}", "attachmentsWrapper" : $('#forum_add_topic_attachments'), "attachDefaultTitle" : $("#forum_add_topic_attach_default_title"), "firstAttachName" : $("#forum_add_topic_first_attach_name"), "clearFiles" : $("#forum_add_topic_clear_files"), "attachNewFiles" : $("#forum_add_topic_attach_files"), "attachNewFile" : $("#forum_add_topic_attach_file") }); }); {/script} {/if}