alps/themes/alps/update-event.html
2020-05-20 22:06:35 +02:00

47 lines
1.5 KiB
HTML

{{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"}}