summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-09 17:29:15 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-09 17:29:15 -0600
commit2a16eeb8df3fab2715b95efbbdc69b7c03a6a746 (patch)
tree66415fd5491a8b494c5350fd75399bc8d87aff6e /templates
parent0b7111ce7186e64f8f290d0a2d8af7f1c987850f (diff)
Add reply templates
Diffstat (limited to 'templates')
-rw-r--r--templates/replies/form.jinja17
-rw-r--r--templates/replies/index.jinja21
2 files changed, 38 insertions, 0 deletions
diff --git a/templates/replies/form.jinja b/templates/replies/form.jinja
new file mode 100644
index 0000000..f667cf4
--- /dev/null
+++ b/templates/replies/form.jinja
@@ -0,0 +1,17 @@
+<form action="" class="reply-form" id="reply-form" method="post">
+ <div>
+ <label for="author"> Name: </label>
+ <input type="text" name="author" id="author" />
+ </div>
+ <div>
+ <label for="email"> Email: </label>
+ <input type="text" name="email" id="email" />
+ </div>
+ <div>
+ <textarea rows="4" cols="40" form="reply-form" name="content" id="content" />
+ </textarea>
+ </div>
+ <div>
+ <input type="submit" value="Submit" />
+ </div>
+</form>
diff --git a/templates/replies/index.jinja b/templates/replies/index.jinja
new file mode 100644
index 0000000..df0705a
--- /dev/null
+++ b/templates/replies/index.jinja
@@ -0,0 +1,21 @@
+<div id="comment-section" class="comment-section">
+ {% for reply in page.items %}
+ <div id="reply-{{reply.id}}" class="comment">
+ <section class="comment-meta">
+ <div class="author">
+ {% if reply.author is eq('') %}
+ Anonymous said:
+ {% else %}
+ {{ reply.author }} said:
+ {% endif %}
+ </div>
+ <div class="date">
+ {{ reply.created_at.date().isoformat() }}
+ </div>
+ </section>
+ <textarea rows="4" cols="40" disabled="true">
+ {{ reply.content }}
+ </textarea>
+ </div>
+ {% endfor %}
+</div>