-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch-availability.page.tmpl
46 lines (37 loc) · 1.52 KB
/
search-availability.page.tmpl
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
36
37
38
39
40
41
42
43
44
45
{{template "base" .}}
{{define "content"}}
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<h1 class="mt-3">Search for Availability</h1>
<form action="/search-availability" method="post" novalidate class="needs-validation">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<div class="row">
<div class="col">
<div class="row" id="reservation-dates">
<div class="col-md-6">
<input required class="form-control" type="text" name="start" placeholder="Arrival">
</div>
<div class="col-md-6">
<input required class="form-control" type="text" name="end" placeholder="Departure">
</div>
</div>
</div>
</div>
<hr>
<button type="submit" class="btn btn-primary">Search Availability</button>
</form>
</div>
<div class="col-md-3"></div>
</div>
</div>
{{end}}
{{define "js"}}
<script>
const elem = document.getElementById('reservation-dates');
const rangePicker = new DateRangePicker(elem, {
format: "yyyy-mm-dd",
});
</script>
{{end}}