summaryrefslogtreecommitdiff
path: root/views/forum_post.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-09 16:35:49 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-09 22:59:49 +0100
commiteb12dd7700dfceff88d8d68acc720d86cdf90e05 (patch)
tree6a365a0ba788e9b6e61c3a34e059ee4e75da2bfe /views/forum_post.ejs
parent7777850fd868b6b24f64dcd6b5942cc6c4423c95 (diff)
downloadserver-eb12dd7700dfceff88d8d68acc720d86cdf90e05.tar.gz
Add forum.
Diffstat (limited to 'views/forum_post.ejs')
-rw-r--r--views/forum_post.ejs20
1 files changed, 20 insertions, 0 deletions
diff --git a/views/forum_post.ejs b/views/forum_post.ejs
new file mode 100644
index 0000000..aa24455
--- /dev/null
+++ b/views/forum_post.ejs
@@ -0,0 +1,20 @@
+<%- include('header', { title: "New Thread" }) %>
+<style>
+input, textarea { width: 100%; max-width: 45em; }
+</style>
+<form action="/forum/post" method="post">
+<p>
+Subject:
+<br>
+<input type="text" name="subject" size="80" maxlength="80"
+ onkeypress="if(event.keyCode===13){document.querySelector('textarea').focus();return false;}"
+ autofocus
+ pattern=".*\S+.*"
+ required>
+<p>
+Body:
+<br>
+<textarea name="body" rows="20" cols="80" maxlength="32000" required></textarea>
+<p>
+<button type="submit">Submit</button>
+</form>