about summary refs log tree commit diff
path: root/templates/index.html
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T18·01+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T18·01+0200
commit55b28f81369b6ea35ea08b67958674198fe94a4d (patch)
treee28a64b67dc71a3f5152e466d4ede398e3245b1a /templates/index.html
parent094b1e07225313c930c26dbeb73755f34a537ce4 (diff)
feat(templates): Add a shitty thread submission form
Diffstat (limited to 'templates/index.html')
-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>