diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-05-20 13:40:54 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-20 22:06:35 +0200 |
commit | a89225138772feb1b159c2794f345b7e4bb36658 (patch) | |
tree | 0a5a8fab454a7e0fa5ffa678a13701e24523a1a3 /themes/alps/event.html | |
parent | 7fb2b65eaafa7ad63c7b3f6850934f958afa1bb4 (diff) | |
download | alps-a89225138772feb1b159c2794f345b7e4bb36658.tar.gz alps-a89225138772feb1b159c2794f345b7e4bb36658.zip |
alps theme: add event page layout
Diffstat (limited to 'themes/alps/event.html')
-rw-r--r-- | themes/alps/event.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/themes/alps/event.html b/themes/alps/event.html new file mode 100644 index 0000000..52b7fa4 --- /dev/null +++ b/themes/alps/event.html @@ -0,0 +1,59 @@ +{{template "head.html" .}} +{{template "nav.html" .}} + +<div class="page-wrap"> + <aside> + <a href="/calendar/create" class="new">New event</a> + <!-- TODO: fetch list of address books --> + <a href="#" class="active">{{.Calendar.Name}}</a> + <a href="#">Personal</a> + </aside> + + <div class="container"> + <main class="event"> + <section class="actions"> + <div class="actions-wrap"> + <div class="actions-message"> + <div class="action-group"> + <a href="/calendar" class="button-link">« Back</a> + </div> + <div class="action-group"> + <a href="{{.Event.URL}}/update" class="button-link">Edit</a> + </div> + <form + class="action-group" + action="{{.Event.URL}}/delete" + method="post" + > + <input type="submit" value="Delete"> + </form> + <!-- TODO: Invite attendees --> + </div> + </div> + </section> + + <section class="details"> + {{$event := index .Event.Data.Events 0}} + <table> + <tr> + <th colspan="2"> + <h1>{{$event.Props.Text "SUMMARY"}}</h1> + </th> + </tr> + <tr> + <th>Start date:</th> + <td>{{$event.DateTimeStart nil | formatdate}}</td> + </tr> + <tr> + <th>End date:</th> + <td>{{$event.DateTimeEnd nil | formatdate}}</td> + </tr> + <!-- TODO: List of attendees, room --> + </table> + <pre>{{$event.Props.Text "DESCRIPTION"}}</pre> + </section> + </main> + </div> +</div> + +{{template "foot.html"}} |