aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/write_note_form.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/write_note_form.php')
-rw-r--r--templates/write_note_form.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/write_note_form.php b/templates/write_note_form.php
index b86e825..82964c5 100644
--- a/templates/write_note_form.php
+++ b/templates/write_note_form.php
@@ -1,3 +1,8 @@
+<form hidden id="writeNoteAttachmentForm" action="/todo" hx-post="/fragment/note/attachmentPill" hx-swap="beforebegin"
+ hx-target="#writeNoteAttachmentPillAdder" enctype="multipart/form-data">
+ <input hidden type="file" name="file" id="noteAttachmentFile" _="on change send submit to closest <form/>">
+</form>
+
<form id="writeNoteForm" action="/todo" method="post" hx-post="/fragment/note" hx-swap="outerHTML"
hx-disabled-elt="find button" _="on submit wait 1s then trigger update on #liveTimelineUpdater">
<div class="row miniProfile">
@@ -21,6 +26,10 @@
<?php call_template('user_mention_pill'); ?>
</div>
<div class="row">
+ <label class="standalone"><?= __('writeNote.attachments.label') ?></label>
+ <?php call_template('attachment_pill'); ?>
+ </div>
+ <div class="row">
<label for="noteScope"><?= __('writeNote.scope.label') ?></label>
<select name="scope" id="noteScope" required autocomplete="off">
<option value="none"><?= __('note.privacy.scope.none') ?></option>