aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/message.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-19 16:43:27 +0100
committerSimon Ser <contact@emersion.fr>2020-03-19 16:43:27 +0100
commitb61e40f36309e94541a6de3aff6d7356e9d7f99f (patch)
tree671d0eab642d7888f3926353f3a1b43cf3bd528a /plugins/base/public/message.html
parentfe73f2022c89ab7e32644668a3499698dd2f8368 (diff)
downloadalps-b61e40f36309e94541a6de3aff6d7356e9d7f99f.tar.gz
alps-b61e40f36309e94541a6de3aff6d7356e9d7f99f.zip
plugins/base: allow move/delete/flag operations to take multiple UIDs
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r--plugins/base/public/message.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index b537ff0..ed2b1a2 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -16,7 +16,8 @@
{{end}}
</h2>
-<form method="post" action="{{.Message.URL}}/move">
+<form method="post" action="/message/{{.Mailbox.Name | pathescape}}/move">
+ <input type="hidden" name="uids" value="{{.Message.Uid}}">
<label for="move-to">Move to:</label>
<select name="to" id="move-to">
{{range .Mailboxes}}
@@ -26,12 +27,14 @@
<input type="submit" value="Move">
</form>
-<form method="post" action="{{.Message.URL}}/delete">
+<form method="post" action="/message/{{.Mailbox.Name | pathescape}}/delete">
+ <input type="hidden" name="uids" value="{{.Message.Uid}}">
<input type="submit" value="Delete">
</form>
{{if .Flags}}
- <form method="post" action="{{.Message.URL}}/flag">
+ <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/flag">
+ <input type="hidden" name="uids" value="{{.Message.Uid}}">
<p>Flags:</p>
{{range $name, $has := .Flags}}
{{if ismutableflag $name}}