aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/update-address-object.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 10:04:54 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 17:47:52 +0200
commit50cb8bef77cf2a6c2feed3a25af4871b2e6792ff (patch)
treea6ef6b2ac02471c8525015e2e320d95c7968893e /themes/alps/update-address-object.html
parente4e410de1e3129fe7832e2bbe6326719c3e4d813 (diff)
downloadalps-50cb8bef77cf2a6c2feed3a25af4871b2e6792ff.tar.gz
alps-50cb8bef77cf2a6c2feed3a25af4871b2e6792ff.zip
alps theme: add contact edit/create
Diffstat (limited to 'themes/alps/update-address-object.html')
-rw-r--r--themes/alps/update-address-object.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/themes/alps/update-address-object.html b/themes/alps/update-address-object.html
new file mode 100644
index 0000000..52644d0
--- /dev/null
+++ b/themes/alps/update-address-object.html
@@ -0,0 +1,42 @@
+{{template "head.html" .}}
+{{template "nav.html" .}}
+
+<div class="page-wrap">
+ <aside>
+ <a href="/contacts/create" class="new active">New contact</a>
+ <!-- TODO: fetch list of address books -->
+ <a href="#">{{.AddressBook.Name}}</a>
+ <a href="#">Personal</a>
+ </aside>
+
+ <div class="container">
+ <main class="new-contact">
+ <form method="post">
+ <h2>
+ {{if .Card}}Edit{{else}}Create{{end}} contact
+ </h2>
+
+ <label>
+ <span>Name</span>
+ <input type="text" name="fn" id="fn" value="{{.Card.PreferredValue "FN"}}" />
+ </label>
+ <label>
+ <span>Email addresses</span>
+ <input
+ type="email"
+ name="emails"
+ id="emails"
+ value="{{join (.Card.Values "EMAIL") ", "}}"
+ multiple />
+ </label>
+
+ <div class="actions">
+ <button type="submit">Save</button>
+ <a class="button-link" href="/contacts">Cancel</a>
+ </div>
+ </form>
+ </main>
+ </div>
+</div>
+
+{{template "foot.html"}}