aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav/public/update-event.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-13 19:42:41 +0200
committerSimon Ser <contact@emersion.fr>2020-05-13 19:44:08 +0200
commitce0b0a7eeb35049a921e160920a7c279327db0ca (patch)
tree8afd8dfbbab16473a33345aaf95c56ea0f96b59c /plugins/caldav/public/update-event.html
parentea12ffcc4ce74d68fbe1387ec6668126982ec11e (diff)
downloadalps-ce0b0a7eeb35049a921e160920a7c279327db0ca.tar.gz
alps-ce0b0a7eeb35049a921e160920a7c279327db0ca.zip
plugins/caldav: add form to create new events
Diffstat (limited to 'plugins/caldav/public/update-event.html')
-rw-r--r--plugins/caldav/public/update-event.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/caldav/public/update-event.html b/plugins/caldav/public/update-event.html
new file mode 100644
index 0000000..1a4abcc
--- /dev/null
+++ b/plugins/caldav/public/update-event.html
@@ -0,0 +1,30 @@
+{{template "head.html" .}}
+
+<h1>alps</h1>
+
+<p>
+ <a href="/calendar">Back</a>
+</p>
+
+<h2>
+ {{if .CalendarObject}}Edit{{else}}Create{{end}} event
+</h2>
+
+<form method="post">
+ <label for="summary">Name:</label>
+ <input type="text" name="summary" id="summary" value="{{.Event.Props.Text "SUMMARY"}}">
+ <br>
+
+ <!-- TODO: inputs with time -->
+ <label for="start">Start date:</label>
+ <input type="date" name="start" id="start" value="{{.Event.DateTimeStart nil | ornow | formatinputdate}}"/>
+ <br>
+
+ <label for="end">End date:</label>
+ <input type="date" name="end" id="end" value="{{.Event.DateTimeEnd nil | ornow | formatinputdate}}"/>
+ <br>
+
+ <input type="submit" value="Save">
+</form>
+
+{{template "foot.html"}}