aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/reply_form.php
diff options
context:
space:
mode:
authorwinter2025-01-13 20:37:34 +0000
committerwinter2025-01-13 20:37:34 +0000
commitf31d2abc237958bd9f33875f20198c4510389556 (patch)
tree57c0920666ca052d8850824ad47b326631764aa6 /templates/reply_form.php
parentfb9efd9f4682f528b1832622d192b9b5544584a9 (diff)
implement replying to posts
Diffstat (limited to 'templates/reply_form.php')
-rw-r--r--templates/reply_form.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/reply_form.php b/templates/reply_form.php
new file mode 100644
index 0000000..84d8121
--- /dev/null
+++ b/templates/reply_form.php
@@ -0,0 +1,11 @@
+<form class="noteReplyForm" id="replyForm-<?= $note->id ?>"
+ _="on submit send toggle to previous <button.reply/> on toggle or submit toggle @hidden" hidden
+ hx-post="/fragment/note/<?= $note->id ?>/reply" hx-disabled-elt="find button" hx-swap="outerHTML">
+ <div class="row">
+ <label for="replyContent-<?= $note->id ?>"><?= __('writeReply.label') ?></label>
+ <textarea id="replyContent-<?= $note->id ?>" name="content" required></textarea>
+ </div>
+ <div class="row">
+ <button><?= __('writeReply.action') ?></button>
+ </div>
+</form> \ No newline at end of file