Skip to content
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

Create form to add reservation #4

Open
acrollet opened this issue Nov 30, 2017 · 2 comments
Open

Create form to add reservation #4

acrollet opened this issue Nov 30, 2017 · 2 comments
Assignees

Comments

@acrollet
Copy link
Member

acrollet commented Nov 30, 2017

Let's place an 'Add Reservation' button on nodes with booking enabled. It should go to a form that allows choosing the start and end dates, (and times for hourly) defaulting to the current date and a day/hour (daily/hourly) later. After a user submits the form, we should:

  • ensure there is availability for at least one unit associated with the current node (if not, prevent submission and show an error to the user)
  • if there's availability, save an event, linked to the first available unit, authored by the logged in user, in the 'Booked' state.
@acrollet
Copy link
Member Author

acrollet commented Dec 1, 2017

@cecrs leave your feedback here :)

@cecrs
Copy link
Member

cecrs commented Dec 1, 2017

@acrollet comment updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants