2020-05-13 17:42:41 +00:00
|
|
|
{{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>
|
|
|
|
|
|
|
|
<!-- TODO: inputs with time -->
|
|
|
|
<label for="start">Start date:</label>
|
|
|
|
<input type="date" name="start" id="start" value="{{.Event.DateTimeStart nil | ornow | formatinputdate}}"/>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<label for="end">End date:</label>
|
|
|
|
<input type="date" name="end" id="end" value="{{.Event.DateTimeEnd nil | ornow | formatinputdate}}"/>
|
|
|
|
<br>
|
|
|
|
|
2020-05-20 15:08:24 +00:00
|
|
|
<label for="description">Description:</label><br>
|
|
|
|
<textarea name="description" id="description" cols="80" rows="15">{{.Event.Props.Text "DESCRIPTION"}}</textarea>
|
|
|
|
<br><br>
|
|
|
|
|
2020-05-13 17:42:41 +00:00
|
|
|
<input type="submit" value="Save">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{template "foot.html"}}
|