aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/compose.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-16 15:40:30 +0100
committerSimon Ser <contact@emersion.fr>2019-12-16 15:40:30 +0100
commit08b259bd50155c53259ae60042c8626a3615a993 (patch)
treeb250326fc63d9230cb151a636f5e00a0a86d4ca5 /plugins/base/public/compose.html
parent7f48702b83a62cccae67562ca2d07fafb274a3ef (diff)
downloadalps-08b259bd50155c53259ae60042c8626a3615a993.tar.gz
alps-08b259bd50155c53259ae60042c8626a3615a993.zip
Add attachments support to composer
Closes: https://todo.sr.ht/~sircmpwn/koushin/13
Diffstat (limited to 'plugins/base/public/compose.html')
-rw-r--r--plugins/base/public/compose.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/base/public/compose.html b/plugins/base/public/compose.html
index 5f0b904..0e16acf 100644
--- a/plugins/base/public/compose.html
+++ b/plugins/base/public/compose.html
@@ -8,14 +8,14 @@
<h2>Compose new message</h2>
-<form method="post" action="">
+<form method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
<label for="from">From:</label>
- <input type="email" name="from" id="from" value="{{.Message.From}}">
+ <input type="email" name="from" id="from" required value="{{.Message.From}}">
<br><br>
<label for="to">To:</label>
- <input type="email" name="to" id="to" multiple value="{{.Message.ToString}}">
+ <input type="email" name="to" id="to" multiple required value="{{.Message.ToString}}">
<br><br>
<label for="subject">Subject:</label>
<input type="text" name="subject" id="subject" value="{{.Message.Subject}}">
@@ -23,6 +23,9 @@
<label for="text">Body:</label><br>
<textarea name="text" id="text" cols="80" rows="20">{{.Message.Text}}</textarea>
<br><br>
+ <label for="attachments">Attachments:</label>
+ <input type="file" name="attachments" id="attachments" multiple>
+ <br><br>
<input type="submit" value="Send">
</form>