{form name="post_form"}
{input name="text"}
{error name="text"}
{if isset($extendedText)}
{$extendedText}
{/if}
{submit name="submit"}
{if $enableAttachments} {script} $( document ).ready(function() { var forumEditPostAttachments = new ForumAttachments({ "attachmentUid" : "{$attachmentUid}", "attachmentsWrapper" : $('#forum_edit_post_attachments'), "attachDefaultTitle" : $("#forum_edit_post_attach_default_title"), "firstAttachName" : $("#forum_edit_post_first_attach_name"), "clearFiles" : $("#forum_edit_post_clear_files"), "attachNewFiles" : $("#forum_edit_post_attach_files"), "attachNewFile" : $("#forum_edit_post_attach_file"), "deleteAttachmentsUrl" : "{url_for_route for='forum_delete_attachment'}" }); {if !empty($attachments)} forumEditPostAttachments.renderUploadedAttachments({$attachments}); {/if} }); {/script}
{decorator name="button" langLabel="forum+add_files" id="forum_edit_post_attach_files"}
{/if}
{$attachmentsCmp}
{/form}