aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 16:06:59 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 22:12:37 +0200
commit79233fa5cbe82edebe76431e303914d4669261d3 (patch)
tree5c862a514a602a89cacaf175f9bff9d456db008b /themes
parent7293b7e8e7c0efddf4a8461440d49418a5b78fe1 (diff)
downloadalps-79233fa5cbe82edebe76431e303914d4669261d3.tar.gz
alps-79233fa5cbe82edebe76431e303914d4669261d3.zip
alps theme: wire up auto-completion in compose
Diffstat (limited to 'themes')
-rw-r--r--themes/alps/compose.html24
1 files changed, 22 insertions, 2 deletions
diff --git a/themes/alps/compose.html b/themes/alps/compose.html
index 0342c29..be84b03 100644
--- a/themes/alps/compose.html
+++ b/themes/alps/compose.html
@@ -20,14 +20,34 @@
<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>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
+ list="emails"
+ {{ 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>
+ <datalist id="emails">
+ {{range .Extra.EmailSuggestions}}
+ <option value="{{.}}">
+ {{end}}
+ </datalist>
+
<div class="actions">
<button type="submit">Send Message</button>
<button type="submit" name="save_as_draft">Save as draft</button>