aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-14 20:19:02 +0000
committerr <r@freesoftwareextremist.com>2019-12-14 20:19:02 +0000
commite129ea922e6cbe8966f9a9f0b1c6c94401516c61 (patch)
tree35be3bc003b787db5898ac1ba8aacca3f944105e /templates
parentea66bd539dec12ef2846c23e505593f9f9d9fac3 (diff)
downloadbloat-e129ea922e6cbe8966f9a9f0b1c6c94401516c61.tar.gz
bloat-e129ea922e6cbe8966f9a9f0b1c6c94401516c61.zip
Add attachments support
Diffstat (limited to 'templates')
-rw-r--r--templates/thread.tmpl4
-rw-r--r--templates/timeline.tmpl4
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/thread.tmpl b/templates/thread.tmpl
index 4bdc2f0..a3f7916 100644
--- a/templates/thread.tmpl
+++ b/templates/thread.tmpl
@@ -8,12 +8,14 @@
{{template "status.tmpl" .Status}}
{{if .PostReply}}
-<form class="timeline-post-form" action="/post" method="POST">
+<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
<input type="hidden" name="reply_to_id" value="{{.ReplyToID}}" />
<label for="post-content"> Reply to {{.Status.Account.DisplayName}} </label>
<br/>
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{.ReplyContent}}</textarea>
<br/>
+ Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
+ <br/>
<button type="submit"> Post </button>
</form>
{{end}}
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl
index 7f3234c..51bf12e 100644
--- a/templates/timeline.tmpl
+++ b/templates/timeline.tmpl
@@ -2,11 +2,13 @@
<div class="page-title"> Timeline </div>
{{template "navigation.tmpl"}}
-<form class="timeline-post-form" action="/post" method="POST">
+<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
<label for="post-content"> New Post </label>
<br/>
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
<br/>
+ Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
+ <br/>
<button type="submit"> Post </button>
</form>