alps/plugins/caldav/public/update-event.html

35 lines
1.1 KiB
HTML

{{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>
<label for="start-date">Start date:</label>
<input type="date" name="start-date" id="start-date" value="{{.Event.DateTimeStart nil | formatinputdate}}"/>
<input type="time" name="start-time" id="start-time" value="{{.Event.DateTimeStart nil | formatinputtime}}"/>
<br>
<label for="end-date">End date:</label>
<input type="date" name="end-date" id="end-date" value="{{.Event.DateTimeEnd nil | formatinputdate}}"/>
<input type="time" name="end-time" id="end-time" value="{{.Event.DateTimeEnd nil | formatinputtime}}"/>
<br>
<label for="description">Description:</label><br>
<textarea name="description" id="description" cols="80" rows="15">{{.Event.Props.Text "DESCRIPTION"}}</textarea>
<br><br>
<input type="submit" value="Save">
</form>
{{template "foot.html"}}