about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T18·20+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T18·20+0200
commitef5f7af89c8dfadca3d2515e4fa1ce71a4b778b9 (patch)
tree418d688d361ca8c726c457ca42294dbfe017b570 /templates
parentcf636077e65ae4c8598fd32aa9b233b87070875e (diff)
feat(templates): Add shitty little response form in thread view
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
-rw-r--r--templates/thread.html14
2 files changed, 14 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 2b835e8eb71a..d1b744e943c1 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,7 +11,7 @@
       {%- endfor %}
     </ul>
     <hr>
-    <form action="/thread" method="post">
+    <form action="/thread/submit" method="post">
       <div>
         <label for="title">Title:</label>
         <input type="text" id="title" name="title">
diff --git a/templates/thread.html b/templates/thread.html
index e841668bfe41..e26d4bcc613e 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -8,7 +8,19 @@
 
     <p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p>
     {% for post in posts -%}
-      <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></p>
+    <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></li>
     {%- endfor %}
+
+    <hr>
+    <form action="/thread/reply" method="post">
+      <input type="hidden" id="thread_id" name="thread_id" value="{{ thread.id }}">
+      <div>
+        <label for="body">Content:</label>
+        <textarea id="body" name="body"></textarea>
+      </div>
+      <div>
+        <input type="submit" value="Reply">
+      </div>
+    </form>
   </body>
 </html>