diff options
Diffstat (limited to 'themes/alps')
-rw-r--r-- | themes/alps/compose.html | 16 |
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> |