6b8292c49e9295073aab7a1d059ec68f1345e1d1
[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" 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 <textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"
16         <?!("COND:LOGGEDIN",1)>
17                 onClick="javascript:GetLoggedInFirst(encodeURIComponent(window.location.href));"
18         <??("X",1)>
19 >
20 </textarea>
21 <input type="submit" name="submit_action" value="Submit Comment"
22         <?!("COND:LOGGEDIN",1)>
23                 disabled="disabled"
24         <??("X",1)>
25 />
26 </form>
27 </div>