1d60f40291df02e0f7183eb1e8b6f03b6288898c
[citadel.git] / webcit / static / t / view_blog / comment_box.html
1 <script type="text/javascript">
2 function submit_comment() {
3         $('comment_form_references').value = $('comment_replyto').innerHTML ;
4         return false;
5 }
6 </script>
7 <div class="blog_comment">
8 <span class="post_a_comment_title"><?_("Post a comment")></span>
9 <form id="blog_comment_form" accept-charset="UTF-8" enctype="multipart/form-data"
10  method="POST" action="post#comments" onSubmit="submit_comment();">
11 <input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
12 <input type="hidden" name="nonce" value="<?NONCE>">
13 <input type="hidden" name="force_room" value="<?THISROOM:NAME("X")>">
14 <input type="hidden" name="references" id="comment_form_references" /><br>
15 <input type="hidden" name="p" value="<?BSTR('p')>">
16 <textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"
17         <?!("COND:LOGGEDIN",1)>
18                 onClick="javascript:GetLoggedInFirst(encodeURIComponent(window.location.href));"
19         <??("X",1)>
20 >
21 </textarea>
22 <input type="submit" name="submit_action" value="Submit Comment"
23         <?!("COND:LOGGEDIN",1)>
24                 disabled="disabled"
25         <??("X",1)>
26 />
27 </form>
28 </div>