]> 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 aac6a2c34f4f2cfd3710371f1255fd66a3801759..b5fd223fe72f864b0adae25fa8cd38dc5d7d2ece 100644 (file)
@@ -5,14 +5,23 @@ function submit_comment() {
 }
 </script>
 <div class="blog_comment">
-Leave a comment FIXME i18n
+<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%"></textarea>
-<input type="submit" name="submit_action" value="Submit Comment" />
+<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>