-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapshot.htm
175 lines (172 loc) · 6.4 KB
/
snapshot.htm
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<div class='snapshot_wrapper'>
<div class="alert alert-success snapshot_alert ym-wrapper" role="alert" ng-show="Snapshot.ShowSuccess">
{{Snapshot.SuccessMessage}}
</div>
<div class="alert alert-danger ym-wrapper snapshot_alert" role="alert" ng-show="Snapshot.ShowError">
{{Snapshot.ErrorMessage}}
</div>
<div class='new_booking_wrapper'>
<button class='btn btn-success btn-large' ng-click='newBooking()'>New Booking</button>
<button class='btn btn-large' ng-click='newReservation()'>New Reservation</button>
</div>
<booking id="" ng-model="currBooking" ng-show="edit"/>
<div class='snapshot_search_wrapper'>
<div class='snapshot_searchbar_wrapper'>
<input type='text' tabindex="0" ng-model="Snapshot.searchText" class='form-control' ng-keydown="Snapshot.searchKeyDown($event)" placeholder="Search All Bookings"/>
<button class='close' ng-click="Snapshot.clearSearch()">×</button>
</div>
</div>
<div class='snapshot_search_results ym-wrapper' ng-show="Snapshot.searchResults.length > 0">
<table class='table table-condensed table-striped table-hover'>
<thead>
<tr>
<td>Name</td>
<td>Rego</td>
<td>Check In</td>
<td>Check Out</td>
<td># Nights</td>
<td># People</td>
<td>Vehicle</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="Result in Snapshot.searchResults" ng-click="Snapshot.loadBooking(Result.bookingId,true)">
<td>{{Result.name}}</td>
<td>{{Result.registration}}</td>
<td>{{Result.checkInDate | date:'MM/dd/yyyy'}}</td>
<td>{{Result.checkOutDate | date:'MM/dd/yyyy'}}</td>
<td>{{Result.numberNights}}</td>
<td>{{Result.numberPeople}}</td>
<td>{{Result.type}}</td>
</tr>
</tbody>
</table>
</div>
<div class='snapshot_date_wrapper ym-wrapper' ng-init="getConfig();">
<button type='button' class='snapshot_date_selector btn' ng-click='prevDay()'>«</button>
<input class='view_date' ng-change="getDailyBookings()" class='current_date snapshot_date_selector' ng-model='dailyDate'>
<button class='snapshot_date_selector btn' ng-click='nextDay()'>»</button>
</div>
<div class='snapshot_daily_totals ym-grid'>
<div class='snapshot_total_people ym-gl ym-g50'>
<div class='total_box'>
<div class='total_icon'> </div>
<div class='total_text'>
<div class="total_numbers">{{Snapshot.Total}}</div>
<div class='total_type'>Total</div>
</div>
</div>
</div>
<div class="snapshot_total_tent ym-gr ym-g50">
<div class='total_box'>
<div class='total_icon'> </div>
<div class='total_text'>
<div class="total_numbers">{{Snapshot.Tent}}</div>
<div class='total_type'>Tent</div>
</div>
</div>
</div>
</div>
<div class="dollar_totals ym-wrapper">
<div class="ym-grid">
<div class="ym-gl ym-g50">
<div class='dollar_header'>Cash Total:</div>
<div class='dollar_amount'>{{totalCash}}</div>
</div>
<div class="ym-gl ym-g50">
<div class='dollar_header'>EFTPOS Total:</div>
<div class='dollar_amount'>{{totalEftpos}}</div>
</div>
</div>
</div>
<div class='divider'></div>
<div class='arrivals_wrapper ym-wrapper'>
<div class='arrivals_header'>Arrivals</div>
<table class='arrivals_table table table-condensed table-striped table-hover'>
<thead>
<tr>
<td>Type</td>
<td>Name</td>
<td>Vehicle</td>
<td># People</td>
<td>Phone #</td>
<td>Notes</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="Arrival in bookingsList | filter:{'booking_type':'Reservation'}" ng-click="editBooking(Arrival.id)">
<td>{{Arrival.booking_type}}</td>
<td>{{Arrival.name}}</td>
<td>{{Arrival.type}}</td>
<td>{{Arrival.number_people}}</td>
<td>{{Arrival.phone_number}}</td>
<td>{{Arrival.notes}}</td>
</tr>
</tbody>
</table>
</div>
<div class='in_house_wrapper'>
<div class='in_house_header'>In House<input class='snapshot_inhouse_search form-control' type='text' ng-model='Snapshot.InHouseSort.searchText' placeholder="Search today's bookings"/></div>
<table class='in_house_table table table-condensed table-striped table-hover'>
<thead>
<tr>
<td><a ng-click='sortInHouse("currentSpot")' href='javascript:;'>Site #</a></td>
<td><a ng-click='sortInHouse("spot_type")' href='javascript:;'>Spot Type</a></td>
<td><a ng-click='sortInHouse("name")' href='javascript:;'>Name</a></td>
<td><a ng-click='sortInHouse("type")' href='javascript:;'>Vehicle</a></td>
<td><a ng-click='sortInHouse("registration")' href='javascript:;'>Rego</a></td>
<td><a ng-click='sortInHouse("number_people")' href='javascript:;'># People</a></td>
<td><a ng-click='sortInHouse("number_nights")' href='javascript:;'># Nights</a></td>
<td><a ng-click='sortInHouse("check_out_date")' href='javascript:;'>Check Out</a></td>
<td><a ng-click='sortInHouse("notes")' href='javascript:;'>Notes</a></td>
</tr>
</thead>
<tbody>
<tr ng-repeat="InHouse in bookingsList | filter:{'booking_type':'Booking'} | filter:Snapshot.InHouseSort.searchText | orderBy:sortValue : sortAsc" ng-click="editBooking(InHouse.id)" ng-class='{unpaid:!InHouse.is_paid}'>
<td>{{InHouse.currentSpot}}</td>
<td>{{InHouse.spot_type}}</td>
<td>{{InHouse.name}}</td>
<td>{{InHouse.type}}</td>
<td>{{InHouse.registration}}</td>
<td>{{InHouse.number_people}}</td>
<td>{{InHouse.number_nights}}</td>
<td>{{InHouse.check_out_date | date:'MM/dd/yyyy'}}</td>
<td>{{InHouse.notes}}</td>
</tr>
</tbody>
</table>
</div>
<div class='weekly_view_wrapper ym-wrapper'>
<div class='weekly_view_header'>Weekly View</div>
<div class='snapshot_wdate_wrapper ym-wrapper'>
<button type='button' class='snapshot_date_selector btn' ng-click='adjustWeekDate("backward")'>«</button>
<input class='view_date' ng-change="getWeeklyBookings()" class='current_date snapshot_date_selector' ng-model='weeklyDate'>
<button class='snapshot_date_selector btn' ng-click='adjustWeekDate("forward")'>»</button>
</div>
<table class='table'>
<thead>
<tr>
<td> </td>
<td ng-repeat="Day in weeklyGrid">{{Day.date}}</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<div>Parkable</div>
<div>Tent</div>
</td>
<td ng-repeat="Day in weeklyGrid">
<div>{{Day.parkable}}</div>
<div>{{Day.tent}}</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
$(document).ready(function() {
$('.view_date').datepicker();
});
</script>