1cf95af41e
This causes the mailbox to automatically reload the page every 60 seconds, without JavaScript. This also updates the base template data to include the full URL, and replaces the earlier "Path" field with a pre-split array of path components, which is more immediately useful to most templates given the limitations of string munging with text/template primitives.
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{{template "head.html" .}}
|
|
|
|
<h1>alps</h1>
|
|
|
|
<p>
|
|
<a href="/mailbox/INBOX">Back</a>
|
|
</p>
|
|
|
|
<h2>Compose new message</h2>
|
|
|
|
<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" 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}}
|
|
<br><br>
|
|
<input type="submit" name="save_as_draft" value="Save as draft">
|
|
<input type="submit" value="Send">
|
|
</form>
|
|
|
|
{{template "foot.html"}}
|