- We have a list of court opening dates. Each date can be subject to a price increase if the period is busy. These dates come from a collection called
availableDates - A list of available slots appears after selecting a date and duration. These available slots come from a smart collection called
availableSlots - The user can book a specific slot using a smart action called
book.
How it works
Smart view definition
Learn more about smart views.File template.hbs This file contains the HTML and CSS needed to build the view.
Book smart action
To create the action to book a slot, two files need to be updated:- the file
available-slots.jsinside the folderforestto declare the action - the file
available-slots.jsinside theroutesfolder to implement the logic for the action
bookings collection with the information passed on by the user input form.