alps/plugins/base/public/compose.html

42 lines
1.3 KiB
HTML
Raw Normal View History

{{template "head.html" .}}
2019-12-03 13:33:20 +00:00
2020-05-13 12:07:44 +00:00
<h1>alps</h1>
2019-12-03 13:33:20 +00:00
<p>
2020-01-24 19:58:27 +00:00
<a href="/mailbox/INBOX">Back</a>
2019-12-03 13:33:20 +00:00
</p>
<h2>Compose new message</h2>
<form method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="message_id" value="{{.Message.MessageID}}">
2020-01-24 19:58:27 +00:00
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
2019-12-03 17:41:23 +00:00
2020-01-24 19:58:27 +00:00
<label for="from">From:</label>
<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 required value="{{.Message.ToString}}">
<br><br>
<label for="subject">Subject:</label>
<input type="text" name="subject" id="subject" value="{{.Message.Subject}}">
<br><br>
<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>
{{range .Message.Attachments}}
<br>
<label>
<input type="checkbox" name="prev_attachments" value="{{.Node.PathString}}" checked>
{{.Node}}
</label>
{{end}}
2020-01-24 19:58:27 +00:00
<br><br>
<input type="submit" name="save_as_draft" value="Save as draft">
<input type="submit" value="Send">
2019-12-03 13:33:20 +00:00
</form>
{{template "foot.html"}}