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 reservation for dog-owner user #107

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Create reservation for dog-owner user #107

wants to merge 5 commits into from

Conversation

ErezCohenn
Copy link
Collaborator

@ErezCohenn ErezCohenn commented May 8, 2022

Desired Outcome

Give the dog owner the ability to make new a reservation for his dog to the preferred daycare he selected.

Implemented Changes

After a dog owner has selected the daycare he wishes to book a place for his dog, he will be directed to the daycare owner's home page where he can read more details about the daycare and make a reservation from there.

Connected Issue/Story

Resolves #101
Depends #89, #95

Definition of Done

  1. add button functionality for dog-owner to book on the dog-owner homepage
  2. re-direct the selection of the dog-owner user to the daycare homepage he selected
  3. add the possibility for the dog-owner user to add a new reservation for his dog
  4. tests

Changelog

  • The CHANGELOG has been updated
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: insert issue ID
  • This PR does not require updating any documentation

@ErezCohenn ErezCohenn self-assigned this May 8, 2022
@ErezCohenn ErezCohenn marked this pull request as draft May 8, 2022 10:56
@ErezCohenn
Copy link
Collaborator Author

ErezCohenn commented May 8, 2022

After re-direct to Daycare Profile :

image

@ErezCohenn
Copy link
Collaborator Author

ErezCohenn commented May 8, 2022

Invalid fields:

Invalid mail:

image

Invalid dates:

image

Invalid checkbox terms:

image

@ErezCohenn
Copy link
Collaborator Author

ErezCohenn commented May 8, 2022

Successfull reservation:

image

@ErezCohenn ErezCohenn changed the title Create reservation page for dog-owner user Create reservation for dog-owner user May 8, 2022
@ErezCohenn
Copy link
Collaborator Author

The order was created and inserted into the orders list:

image

OfirMatasas and others added 4 commits May 12, 2022 08:46
A page on Hotails, where the user can watch the history of all of his
orders, cancel the orders which havn't started yet, and approve orders
as a daycare.

Signed-off-by: Ofir Matasas <[email protected]>
Adding area choices for make the data model compatible,
which will improve search for day care by area results.

Signed-off-by: tamirmatok <[email protected]>
The dog-owner user can search for day-care that relevant for him.
If the user didnt search for day-care he will see all Day-Cares in the application.

Signed-off-by: tamirmatok <[email protected]>
Capacity dates check for show only available daycares in dates range.
"get_capacity_of_daycare_in_dates_range" function took from #95 .
waiting for approval.

Signed-off-by: tamirmatok <[email protected]>
After a dog owner user has selected the daycare he wishes to book a place for his dog,
he will be directed to the daycare owner's home page where he can read more details about the daycare,
and make a reservation from there.

Signed-off-by: Erez Cohen <[email protected]>
@ormergi
Copy link
Contributor

ormergi commented May 25, 2022

@ErezCohenn ping

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

Successfully merging this pull request may close these issues.

Create reservation page for dog-owner user
4 participants