diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-27 11:30:11 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-27 11:30:11 +0100 |
commit | 6395be67375f85f3b9aa5b5c3203405cbabcd5de (patch) | |
tree | 72d7a90eedc81d972fea8f975a583706fdf6811a /themes/alps/compose.html | |
parent | c053b7332e3a8eabea58f07cb23d20b10986f1dd (diff) | |
download | alps-6395be67375f85f3b9aa5b5c3203405cbabcd5de.tar.gz alps-6395be67375f85f3b9aa5b5c3203405cbabcd5de.zip |
themes/alps: add button to save as draft
Diffstat (limited to 'themes/alps/compose.html')
-rw-r--r-- | themes/alps/compose.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/themes/alps/compose.html b/themes/alps/compose.html index 57e5a84..7b58a5f 100644 --- a/themes/alps/compose.html +++ b/themes/alps/compose.html @@ -5,6 +5,7 @@ <div class="page-wrap"> <aside> <a href="/compose" class="compose-mail active">Compose Mail</a> + <!-- TODO: use mailbox list from template data --> <a href="/mailbox/INBOX">Inbox</a> <a href="/mailbox/Drafts">Drafts</a> <a href="/mailbox/Sent">Sent</a> @@ -18,17 +19,20 @@ <form method="post" action="" enctype="multipart/form-data"> <input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}"> + <label><span>From</span><input type="email" name="from" id="from" value="{{.Message.From}}" /></label> <label><span>To</span><input type="email" name="to" id="to" value="{{.Message.ToString}}" multiple {{ if not .Message.To }} autofocus{{ end }}/></label> <label><span>Subject</span><input type="text" name="subject" id="subject" value="{{.Message.Subject}}" {{ if .Message.To }} autofocus{{ end }}/></label> <label><span>Attachments</span><input type="file" name="attachments" id="attachments" multiple></label> + <!-- TODO: list of previous attachments (needs design) --> <textarea name="text" class="body">{{.Message.Text}}</textarea> <div class="actions"> - <button type="submit">Send Message</button> + <a href="/mailbox/INBOX">Cancel</a> - <a href="/mailbox/INBOX">Discard</a> + <button type="submit" name="save_as_draft">Save as draft</button> + <button type="submit">Send Message</button> </div> </form> |