summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/tags/commentBox.html
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-24 22:19:29 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-24 22:21:07 +0200
commit14e59440fd5f03d046e4e329eec73560450f1467 (patch)
treed7babd441d7ecb24c5911690cff4fcfb17be75ef /src/main/resources/templates/tags/commentBox.html
parent34453241b6b7fd5159ef26c8268cbb5cc014e22c (diff)
KB66 Add comment post form.
Change-Id: Iac22d115f0d1c59eb273a26d720c07f6d1b11077
Diffstat (limited to 'src/main/resources/templates/tags/commentBox.html')
-rw-r--r--src/main/resources/templates/tags/commentBox.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/resources/templates/tags/commentBox.html b/src/main/resources/templates/tags/commentBox.html
new file mode 100644
index 0000000..3049687
--- /dev/null
+++ b/src/main/resources/templates/tags/commentBox.html
@@ -0,0 +1,26 @@
+{@java.lang.Integer postId}
+
+<div class="comment-box">
+ <script type="module" src="/lib.js"></script>
+ <script type="module" src="/posts/commentBox.js"></script>
+
+ <hr/>
+
+ <form class="comment-form pure-form" method="post" action="/posts/{postId}/comments">
+ <fieldset>
+ <legend>Post Comment</legend>
+
+ <label for="comment-form-author-{postId}">Author (optional)</label>
+ <input name="author" id="comment-form-author-{postId}" type="text" placeholder="Anonymous Coward"/>
+
+ <label for="comment-form-message-{postId}">Message</label>
+ <textarea name="message" id="comment-form-message-{postId}" placeholder="Great article!" required></textarea>
+
+ <input name="hashcash-salt" id="comment-form-hashcash-salt-{postId}" type="hidden"/>
+
+ <div class="controls">
+ <input type="submit" class="pure-button"/>
+ </div>
+ </fieldset>
+ </form>
+</div>