diff options
| author | winter | 2025-01-13 20:37:34 +0000 |
|---|---|---|
| committer | winter | 2025-01-13 20:37:34 +0000 |
| commit | f31d2abc237958bd9f33875f20198c4510389556 (patch) | |
| tree | 57c0920666ca052d8850824ad47b326631764aa6 /templates/reply_form.php | |
| parent | fb9efd9f4682f528b1832622d192b9b5544584a9 (diff) | |
implement replying to posts
Diffstat (limited to 'templates/reply_form.php')
| -rw-r--r-- | templates/reply_form.php | 11 |
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 |
