blob: 7672a7b5718d75b37e95750f47f4310be50dffd1 (
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
|
{{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"}}
|