Initial implementation of comment box for blog (not finished but it does work)
authorArt Cancro <ajc@uncensored.citadel.org>
Fri, 27 May 2011 21:16:59 +0000 (17:16 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:54:14 +0000 (20:54 +0000)
webcit/static/t/blog_comment_box.html
webcit/static/t/view_blog_post.html

index a67ebd0b255ce5d801e457fb57525b52618f0dff..aac6a2c34f4f2cfd3710371f1255fd66a3801759 100644 (file)
@@ -1,5 +1,18 @@
+<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>
+Leave a comment FIXME i18n
+<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%"></textarea>
+<input type="submit" name="submit_action" value="Submit Comment" />
+</form>
 </div>
index c16398b913d2c40ecf487651e79d7bdf320f0a06..ffffa58eb0d4afdf8b8fa9779c19b66f5fcdbea3 100644 (file)
@@ -22,3 +22,4 @@
 <?!("X", 11)>
 </div>
 </div>
+<div id="comment_replyto" style="display:none"><?MAIL:SUMM:INREPLYTO("X")></div>