wip: booking process
This commit is contained in:
@@ -35,8 +35,8 @@ trait BookingCreateTrait
|
|||||||
private function redirectToCurrentStep(BookingCreateDto $bookingCreateDto): RedirectResponse
|
private function redirectToCurrentStep(BookingCreateDto $bookingCreateDto): RedirectResponse
|
||||||
{
|
{
|
||||||
$routeParams = [
|
$routeParams = [
|
||||||
'date_id' => $bookingCreateDto->travelData->id,
|
'date_id' => $bookingCreateDto->travel->id,
|
||||||
'hotel_id' => $bookingCreateDto->travelData->hotelId,
|
'hotel_id' => $bookingCreateDto->travel->hotelId,
|
||||||
];
|
];
|
||||||
|
|
||||||
$route = match ($bookingCreateDto->currentStep) {
|
$route = match ($bookingCreateDto->currentStep) {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class CreateStep3Controller extends AbstractController
|
|||||||
// Validate step access
|
// Validate step access
|
||||||
$this->validateStepAccess($bookingCreateDto, 3);
|
$this->validateStepAccess($bookingCreateDto, 3);
|
||||||
|
|
||||||
return $this->render('booking/confirm.html.twig', [
|
return $this->render('booking/create_step_3.html.twig', [
|
||||||
'bookingCreateDto' => $bookingCreateDto,
|
'bookingCreateDto' => $bookingCreateDto,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{% extends 'layout.html.twig' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user