aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/update-event.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 13:40:52 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 22:06:32 +0200
commit024cab94f16e3615ac8718743af2d417b8e46a81 (patch)
treefa216e9a6245a26e99c94a053bb067330159d37a /themes/alps/update-event.html
parent811891134ee9d4da5a217a670ac5a2dcd0202059 (diff)
downloadalps-024cab94f16e3615ac8718743af2d417b8e46a81.tar.gz
alps-024cab94f16e3615ac8718743af2d417b8e46a81.zip
alps theme: add layout for calendar event update
Diffstat (limited to 'themes/alps/update-event.html')
-rw-r--r--themes/alps/update-event.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/themes/alps/update-event.html b/themes/alps/update-event.html
new file mode 100644
index 0000000..7672a7b
--- /dev/null
+++ b/themes/alps/update-event.html
@@ -0,0 +1,42 @@
+{{template "head.html" .}}
+{{template "nav.html" .}}
+
+<div class="page-wrap">
+ <aside>
+ <a href="/calendar/create" class="new active">New event</a>
+ <!-- TODO: fetch list of address books -->
+ <a href="#">{{.Calendar.Name}}</a>
+ <a href="#">Personal</a>
+ </aside>
+
+ <div class="container">
+ <main class="new-event">
+ <form method="post">
+ <label>
+ <span>Event name</span>
+ <input type="text" name="summary" id="summary" value="{{.Event.Props.Text "SUMMARY"}}">
+ </label>
+
+ <label>
+ <!-- TODO: inputs with time -->
+ <span>Start date</span>
+ <input type="date" name="start" id="start" value="{{.Event.DateTimeStart nil | ornow | formatinputdate}}"/>
+ </label>
+
+ <label>
+ <span>End date</span>
+ <input type="date" name="end" id="end" value="{{.Event.DateTimeEnd nil | ornow | formatinputdate}}"/>
+ </label>
+
+ <textarea name="description" id="description">{{.Event.Props.Text "DESCRIPTION"}}</textarea>
+
+ <div class="actions">
+ <button type="submit">Save</button>
+ <a class="button-link" href="/calendar">Cancel</a>
+ </div>
+ </form>
+ </main>
+ </div>
+</div>
+
+{{template "foot.html"}}