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.
25 lines
504 B
HTML
25 lines
504 B
HTML
{{template "head.html" .}}
|
|
|
|
<h1>alps</h1>
|
|
|
|
<p>
|
|
<a href="/contacts">Back</a>
|
|
</p>
|
|
|
|
<h2>
|
|
{{if .Card}}Edit{{else}}Create{{end}} contact
|
|
</h2>
|
|
|
|
<form method="post">
|
|
<label for="fn">Name:</label>
|
|
<input type="text" name="fn" id="fn" value="{{.Card.PreferredValue "FN"}}">
|
|
<br>
|
|
|
|
<label for="emails">E-mails:</label>
|
|
<input type="email" name="emails" id="emails" multiple value="{{join (.Card.Values "EMAIL") ", "}}">
|
|
<br>
|
|
|
|
<input type="submit" value="Save">
|
|
</form>
|
|
|
|
{{template "foot.html"}}
|