oficina / calendar Public

Clone
git clone https://amadan.net/oficina/calendar

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}{{.Title}}{{end}}
2{{define "content"}}
3<header rst-page-header>
4 <div rst-page-header-titles>
5 <h1>Confirm your booking</h1>
6 <p rst-page-header-sub>{{.Data.Title}} with {{.Data.HostName}}</p>
7 </div>
8</header>
9
10{{$items := list
11 (dict "Label" "When" "Value" .Data.When)
12 (dict "Label" "Booked as" "Value" (printf "%s, %s" .Data.Name .Data.Address))}}
13{{template "detail-list" dict "Items" $items}}
14{{with .Data.HostWhen}}<p cal-elsewhere>That is {{.}} where {{$.Data.HostName}} is.</p>{{end}}
15
16{{/* ONE button, and it is a POST: a link that confirmed on GET would be
17 confirmed by every link-scanning mail gateway (booking spec B1). */}}
18<form rst-form-actions method="post" action="/book/m/{{.Data.Token}}/confirm">
19 <button rst-btn="primary" type="submit">Confirm this booking</button>
20</form>
21<p cal-book-caveat>Didn't ask for this? Do nothing. The hold lapses at {{.Data.ExpiresAt}}.</p>
22{{end}}
23