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.
 
 
 
 

60 lines
1.6 KiB

  1. {{template "head.html" .}}
  2. {{template "nav.html" .}}
  3. <div class="page-wrap">
  4. <aside>
  5. <a href="/calendar/create" class="new">New event</a>
  6. <!-- TODO: fetch list of address books -->
  7. <a href="#" class="active">{{.Calendar.Name}}</a>
  8. <a href="#">Personal</a>
  9. </aside>
  10. <div class="container">
  11. <main class="event">
  12. <section class="actions">
  13. <div class="actions-wrap">
  14. <div class="actions-message">
  15. <div class="action-group">
  16. <a href="/calendar" class="button-link">« Back</a>
  17. </div>
  18. <div class="action-group">
  19. <a href="{{.Event.URL}}/update" class="button-link">Edit</a>
  20. </div>
  21. <form
  22. class="action-group"
  23. action="{{.Event.URL}}/delete"
  24. method="post"
  25. >
  26. <input type="submit" value="Delete">
  27. </form>
  28. <!-- TODO: Invite attendees -->
  29. </div>
  30. </div>
  31. </section>
  32. <section class="details">
  33. {{$event := index .Event.Data.Events 0}}
  34. <table>
  35. <tr>
  36. <th colspan="2">
  37. <h1>{{$event.Props.Text "SUMMARY"}}</h1>
  38. </th>
  39. </tr>
  40. <tr>
  41. <th>Start date:</th>
  42. <td>{{$event.DateTimeStart nil | formatdate}}</td>
  43. </tr>
  44. <tr>
  45. <th>End date:</th>
  46. <td>{{$event.DateTimeEnd nil | formatdate}}</td>
  47. </tr>
  48. <!-- TODO: List of attendees, room -->
  49. </table>
  50. <pre>{{$event.Props.Text "DESCRIPTION"}}</pre>
  51. </section>
  52. </main>
  53. </div>
  54. </div>
  55. {{template "foot.html"}}