aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/reply_form.php
diff options
context:
space:
mode:
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