add preference whether the user prefers to send markdown messages.
[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="markdown" value="1"/>
15 <input type="hidden" name="references" id="comment_form_references" /><br>
16 <input type="hidden" name="p" value="<?BSTR('p')>">
17 <textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"
18         <?!("COND:LOGGEDIN",1)>
19                 onClick="javascript:GetLoggedInFirst(encodeURIComponent(window.location.href));"
20         <??("X",1)>
21 >
22 </textarea>
23 <input type="submit" name="submit_action" value="Submit Comment"
24         <?!("COND:LOGGEDIN",1)>
25                 disabled="disabled"
26         <??("X",1)>
27 />
28 </form>
29 </div>