-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show the available slots in a calendar UI #9
Comments
I've updated the select-a-time page to request the next week's-worth of data from the API, and also fixed it to request the correct resource too. Need to work out how the slots work next to then start to pull together a UI for it. |
Made a start on integrating Fullcalendar.io to display the available slots. On my machine it currently looks like this: Probably need to modify the API server to give the It seems that FullCalendar can populate the data from a JSON feed, so it would be nice to hook it up to the API server so that you can page forwards to find slots further in the future than the default 6 days... Also need to make the slots clickable to select one (and more than one?) and change the colour for non-available slots |
Have added the FullCalendar plugin. On my dev version I've reworked it to use a javascript function to populate the events. That will let it pull future slots if the user wants to book beyond the initial 6 days that get populated. Next step is to add |
I've finished the changes for populating the available slots via AJAX, using I had to add the CORS middleware, and haven't done any particular configuring of it, so maybe we should do some configuring of it? The main things left now are to make the slots clickable to select one (and more than one?) and change the colour for non-available slots |
Haven't pushed the changes yet as they're not finished, but worked out how to make the resource slots selectable. Need to be able to set whether multiple slots can be chosen or not too - for the laser-cutters, for example, you should only be able to choose one slot; whereas for Dinky you'd want to be able to choose a number of slots in one booking |
Remaining issues (possibly covered by other issues):
|
Actually I've edited #8 so that it now covers the "pass on the chosen slot to the make a booking screen". |
So the only bit left for this issue is
|
I've added the status ( (There's nothing in the API to return anything other than |
No description provided.
The text was updated successfully, but these errors were encountered: