]> git.parisson.com Git - django-jqchat.git/commitdiff
templates: move chat form into include file
authorTom S <scytale@gmail.com>
Thu, 22 Nov 2012 15:17:10 +0000 (15:17 +0000)
committerTom S <scytale@gmail.com>
Thu, 22 Nov 2012 15:17:10 +0000 (15:17 +0000)
jqchat/templates/jqchat/_chat_form.html [new file with mode: 0644]
jqchat/templates/jqchat/chat_test.html
jqchat/templates/jqchat/chat_test_with_desc.html

diff --git a/jqchat/templates/jqchat/_chat_form.html b/jqchat/templates/jqchat/_chat_form.html
new file mode 100644 (file)
index 0000000..9e1cd59
--- /dev/null
@@ -0,0 +1,8 @@
+<div id="chatwindow"><span id="loading">Loading...</span></div>
+
+<form id="chatform">
+       <label for="msg">Message:</label>
+       <input type="text" id="msg" />
+       <input type="submit" value="Send message" /><br />
+</form>
+
index 3db3b7c05ef0633b205e97bf2c02fa9bc95d929b..fea9bb5841db71882329d8751b5384c661563c9f 100644 (file)
 
 <h2>Room name: {{ room }}</h2>
 
-<div id="chatwindow"><span id="loading">Loading...</span></div>
-
-<form id="chatform">
-       <label for="msg">Message:</label>
-       <input type="text" id="msg" />
-       <input type="submit" value="Send message" /><br />
-</form>
+{% include 'jqchat/_chat_form.html' %}
 
 <script type="text/javascript">document.getElementById("msg").focus();</script>
 
index 03c5b6c4d21880114e722782ea28f38dcb8feb8c..d97cc3e2dfe715968d78a664cca0e90e18c45cf7 100644 (file)
 <h2>Room name: {{ room }}</h2>
 <h2>Room description: <span id="chatroom_description"></span></h2>
 
-<div id="chatwindow"><span id="loading">Loading...</span></div>
-
-<form id="chatform">
-       <label for="msg">Message:</label>
-       <input type="text" id="msg" />
-       <input type="submit" value="Send message" /><br />
-</form>
+{% include 'jqchat/_chat_form.html' %}
 
 <form id="chatroom_description_form" method="post" action="">
        <label for="id_description">Room description:</label>