aboutsummaryrefslogtreecommitdiff
path: root/plugins/carddav/public
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-12 21:13:51 +0100
committerSimon Ser <contact@emersion.fr>2020-02-12 21:14:18 +0100
commitc4ff33e64522f9662f5356d96b3d68f17764b84a (patch)
tree01c3eeb0b311373841bdf8c996c976d6a4f3eb5f /plugins/carddav/public
parente24e20e528faa4a80c3281811f004b0388f4500b (diff)
downloadalps-c4ff33e64522f9662f5356d96b3d68f17764b84a.tar.gz
alps-c4ff33e64522f9662f5356d96b3d68f17764b84a.zip
plugins/carddav: add page to create new contact
Diffstat (limited to 'plugins/carddav/public')
-rw-r--r--plugins/carddav/public/address-book.html2
-rw-r--r--plugins/carddav/public/update-address-object.html23
2 files changed, 24 insertions, 1 deletions
diff --git a/plugins/carddav/public/address-book.html b/plugins/carddav/public/address-book.html
index f521564..3c31017 100644
--- a/plugins/carddav/public/address-book.html
+++ b/plugins/carddav/public/address-book.html
@@ -3,7 +3,7 @@
<h1>koushin</h1>
<p>
- <a href="/">Back</a>
+ <a href="/">Back</a> ยท <a href="/contacts/create">Create new contact</a>
</p>
<h2>Contacts: {{.AddressBook.Name}}</h2>
diff --git a/plugins/carddav/public/update-address-object.html b/plugins/carddav/public/update-address-object.html
new file mode 100644
index 0000000..b0ab20f
--- /dev/null
+++ b/plugins/carddav/public/update-address-object.html
@@ -0,0 +1,23 @@
+{{template "head.html"}}
+
+<h1>koushin</h1>
+
+<p>
+ <a href="/contacts">Back</a>
+</p>
+
+<h2>Edit 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"}}