]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/t/blog_comment_box.html
move json message rendering templates into its own directory
[citadel.git] / webcit / static / t / blog_comment_box.html
index a67ebd0b255ce5d801e457fb57525b52618f0dff..b5fd223fe72f864b0adae25fa8cd38dc5d7d2ece 100644 (file)
@@ -1,5 +1,27 @@
+<script type="text/javascript">
+function submit_comment() {
+       $('comment_form_references').value = $('comment_replyto').innerHTML ;
+       return false;
+}
+</script>
 <div class="blog_comment">
-Be the first or the last to leave a comment here.  First post!
-<br>
-<TEXTAREA NAME="comments" COLS=80 ROWS=10></TEXTAREA>
+<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" 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="<?ROOMNAME("X")>">
+<input type="hidden" name="references" id="comment_form_references" /><br>
+<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>