blob: 072fb6120b3dcc14dee3aa66e9d438ba8240e648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{if $smarty.request.post_comment_request}
{strip}
<br />
<div class="edit comment">
<div class="body"{if ( $smarty.request.post_comment_request || $post_comment_preview )} id="editcomments"{/if}>
{formfeedback hash=$formfeedback}
{if $post_comment_preview}
<h2>{tr}Comments Preview{/tr}</h2>
<div class="preview">
{include file='bitpackage:liberty/display_comment.tpl' comment=$postComment}
</div><!-- end .preview -->
{/if}
{form action="`$comments_return_url`#editcomments"}
<input type="hidden" name="comments_maxComments" value="{$maxComments}" />
<input type="hidden" name="comments_style" value="{$comments_style}" />
<input type="hidden" name="comments_sort_mode" value="{$comments_sort_mode}" />
{if $smarty.request.post_comment_request || $smarty.request.post_comment_preview}
{legend legend="Post"}
<input type="hidden" name="post_comment_reply_id" value="{$post_comment_reply_id}" />
<input type="hidden" name="post_comment_id" value="{$post_comment_id}" />
<div class="form-group">
{formlabel label="Title" for="comments-title"}
{forminput}
<input type="text" size="50" name="comment_title" id="comments-title" value="{$postComment.title|escape:html}" />
{formhelp note=""}
{/forminput}
</div>
{capture assign="textarea_help"}
{tr}Use [http://www.foo.com] or [http://www.foo.com|description] for links.<br />HTML tags are not allowed inside comments.{/tr}
{/capture}
{textarea noformat=1 label="Comment" id="commentpost" name="comment_data" rows="6" edit=$postComment.data}
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="post_comment_preview" value="{tr}Preview{/tr}"/>
<input type="submit" class="btn btn-default" name="post_comment_submit" value="{tr}Post{/tr}"/>
<input type="submit" class="btn btn-default" name="post_comment_cancel" value="{tr}Cancel{/tr}"/>
</div>
{/legend}
{/if}
{/form}
{pagination}
</div><!-- end .body -->
</div><!-- end .comment -->
{/strip}
{/if}
|