blob: 17c6e16cfc36764c8c5393b82a5b37cf5ceffd1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{{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="create-update">
<h2>
{{if .CalendarObject}}Edit{{else}}Create{{end}} event
</h2>
<form method="post">
<label>
<span>Event name</span>
<input type="text" name="summary" id="summary" value="{{.Event.Props.Text "SUMMARY"}}">
</label>
<label class="event-date">
<span>Starts at</span>
<input type="date" name="start" id="start" value="{{.Event.DateTimeStart nil | formatinputdate}}"/>
<input type="time" name="start-time" id="start-time" value="{{.Event.DateTimeStart nil | formatinputtime}}"/>
</label>
<label class="event-date">
<span>Ends at</span>
<input type="date" name="end" id="end" value="{{.Event.DateTimeEnd nil | formatinputdate}}"/>
<input type="time" name="end-time" id="end-time" value="{{.Event.DateTimeEnd nil | formatinputtime}}"/>
</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"}}
|