A webmail client. Forked from https://git.sr.ht/~migadu/alps
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.5 KiB

  1. {{template "head.html" .}}
  2. {{template "nav.html" .}}
  3. <div class="page-wrap">
  4. <aside>
  5. <a href="/calendar/create" class="new active">New event</a>
  6. <!-- TODO: fetch list of address books -->
  7. <a href="#">{{.Calendar.Name}}</a>
  8. <a href="#">Personal</a>
  9. </aside>
  10. <div class="container">
  11. <main class="create-update">
  12. <h2>
  13. {{if .CalendarObject}}Edit{{else}}Create{{end}} event
  14. </h2>
  15. <form method="post">
  16. <label>
  17. <span>Event name</span>
  18. <input type="text" name="summary" id="summary" value="{{.Event.Props.Text "SUMMARY"}}">
  19. </label>
  20. <label class="event-date">
  21. <span>Starts at</span>
  22. <input type="date" name="start" id="start" value="{{.Event.DateTimeStart nil | formatinputdate}}"/>
  23. <input type="time" name="start-time" id="start-time" value="{{.Event.DateTimeStart nil | formatinputtime}}"/>
  24. </label>
  25. <label class="event-date">
  26. <span>Ends at</span>
  27. <input type="date" name="end" id="end" value="{{.Event.DateTimeEnd nil | formatinputdate}}"/>
  28. <input type="time" name="end-time" id="end-time" value="{{.Event.DateTimeEnd nil | formatinputtime}}"/>
  29. </label>
  30. <textarea name="description" id="description">{{.Event.Props.Text "DESCRIPTION"}}</textarea>
  31. <div class="actions">
  32. <button type="submit">Save</button>
  33. <a class="button-link" href="/calendar">Cancel</a>
  34. </div>
  35. </form>
  36. </main>
  37. </div>
  38. </div>
  39. {{template "foot.html"}}