Revert "serv_rssclient.c: style update"
[citadel.git] / webcit / static / t / view_blog / comment_box.html
diff --git a/webcit/static/t/view_blog/comment_box.html b/webcit/static/t/view_blog/comment_box.html
new file mode 100644 (file)
index 0000000..d8fedef
--- /dev/null
@@ -0,0 +1,29 @@
+<script type="text/javascript">
+function submit_comment() {
+       $('comment_form_references').value = $('comment_replyto').innerHTML ;
+       return false;
+}
+</script>
+<div class="blog_comment">
+<span class="post_a_comment_title"><?_("Post a comment")></span>
+<form id="blog_comment_form" accept-charset="UTF-8" enctype="multipart/form-data"
+ method="POST" action="post#comments" onSubmit="submit_comment();">
+<input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
+<input type="hidden" name="nonce" value="<?NONCE>">
+<input type="hidden" name="force_room" value="<?THISROOM:NAME("X")>">
+<input type="hidden" name="markdown" value="1"/>
+<input type="hidden" name="references" id="comment_form_references" /><br>
+<input type="hidden" name="p" value="<?BSTR('p')>">
+<textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"
+       <?!("COND:LOGGEDIN",1)>
+               onClick="javascript:GetLoggedInFirst(encodeURIComponent(window.location.href));"
+       <??("X",1)>
+>
+</textarea>
+<input type="submit" name="submit_action" value="Submit Comment"
+       <?!("COND:LOGGEDIN",1)>
+               disabled="disabled"
+       <??("X",1)>
+/>
+</form>
+</div>