aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/message.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-16 17:25:53 +0100
committerSimon Ser <contact@emersion.fr>2019-12-16 17:25:53 +0100
commit1841609fbc7a16a657e530e0a208419af7791bd0 (patch)
tree0d6211103711187e62a12a4acc4b1ec04f05f687 /plugins/base/public/message.html
parenta061e85f006bd26f81668107e396d0357f665ce9 (diff)
downloadalps-1841609fbc7a16a657e530e0a208419af7791bd0.tar.gz
alps-1841609fbc7a16a657e530e0a208419af7791bd0.zip
Add form to move messages
References: https://todo.sr.ht/~sircmpwn/koushin/36
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r--plugins/base/public/message.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 729937d..2a0ab71 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -16,6 +16,16 @@
{{end}}
</h2>
+<form method="post" action="{{.Message.Uid}}/move">
+ <label for="move-to">Move to:</label>
+ <select name="to" id="move-to">
+ {{range .Mailboxes}}
+ <option {{if eq .Name $.Mailbox.Name}}selected{{end}}>{{.Name}}</option>
+ {{end}}
+ </select>
+ <input type="submit" value="Move">
+</form>
+
{{define "message-part-tree"}}
{{/* nested templates can't access the parent's context */}}
{{$ = index . 0}}