aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-12 11:21:14 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-12 11:21:14 -0500
commit231626a31a94c65dcce13765815f425b096ae2bb (patch)
treee21d6a3c3d66fa30cb2e60aacb4ec151e5f4c3ea /themes
parenta5fe1e358ecb535f9f88f348831d82757dd62ae9 (diff)
downloadalps-231626a31a94c65dcce13765815f425b096ae2bb.tar.gz
alps-231626a31a94c65dcce13765815f425b096ae2bb.zip
alps: implement forwarding attachments
Diffstat (limited to 'themes')
-rw-r--r--themes/alps/compose.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/themes/alps/compose.html b/themes/alps/compose.html
index ebadaad..1f8320b 100644
--- a/themes/alps/compose.html
+++ b/themes/alps/compose.html
@@ -33,8 +33,21 @@
<label>Attachments</label>
<input type="file" name="attachments" id="attachments" multiple>
- <div id="attachment-list" style="display: none;">
+ <div
+ id="attachment-list"
+ {{ if .Message.Attachments }}
+ style="display: none;"
+ {{ end }}
+ >
<div class="help">Drag and drop attachments here</div>
+ {{range .Message.Attachments}}
+ <div class="upload">
+ <label class="filename">
+ <input type="checkbox" name="prev_attachments" value="{{.Node.PathString}}" checked>
+ {{.Filename}}
+ </label>
+ </div>
+ {{end}}
<!--
<div class="upload">
<span class="progress"></span>
@@ -47,7 +60,6 @@
<input type="hidden" id="attachment-uuids" name="attachment-uuids" value="" />
</div>
- <!-- TODO: list of previous attachments (needs design) -->
<textarea name="text" class="body">{{.Message.Text}}</textarea>