about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templates/index.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index 9faee49ca1f0..2b835e8eb71a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -10,5 +10,19 @@
         <li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }})</li>
       {%- endfor %}
     </ul>
+    <hr>
+    <form action="/thread" method="post">
+      <div>
+        <label for="title">Title:</label>
+        <input type="text" id="title" name="title">
+      </div>
+      <div>
+        <label for="body">Content:</label>
+        <textarea id="body" name="body"></textarea>
+      </div>
+      <div>
+        <input type="submit" value="Submit">
+      </div>
+    </form>
   </body>
 </html>