aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav/public/update-event.html
blob: ae091bd6eef6595edadd31aca0c03e74fa0704af (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
{{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"}}