From d96e65792b976f0fd67565027cefe1572ad4ad63 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Fri, 12 Nov 2021 08:38:20 +0100 Subject: [PATCH] Converted the booking page view files to the layout structure --- application/controllers/Appointments.php | 2 +- application/views/appointments/book.php | 498 ------------------ .../views/layouts/booking/booking_footer.php | 21 + .../views/layouts/booking/booking_header.php | 29 + .../views/layouts/booking/booking_layout.php | 116 ++++ .../pages/booking/booking_cancellation.php | 36 ++ .../views/pages/booking/booking_page.php | 41 ++ .../views/pages/booking/booking_step_1.php | 104 ++++ .../views/pages/booking/booking_step_2.php | 36 ++ .../views/pages/booking/booking_step_3.php | 118 +++++ .../views/pages/booking/booking_step_4.php | 40 ++ 11 files changed, 542 insertions(+), 499 deletions(-) delete mode 100755 application/views/appointments/book.php create mode 100644 application/views/layouts/booking/booking_footer.php create mode 100644 application/views/layouts/booking/booking_header.php create mode 100644 application/views/layouts/booking/booking_layout.php create mode 100644 application/views/pages/booking/booking_cancellation.php create mode 100755 application/views/pages/booking/booking_page.php create mode 100644 application/views/pages/booking/booking_step_1.php create mode 100644 application/views/pages/booking/booking_step_2.php create mode 100644 application/views/pages/booking/booking_step_3.php create mode 100644 application/views/pages/booking/booking_step_4.php diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 15b59f2a..69f37754 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -195,7 +195,7 @@ class Appointments extends EA_Controller { $variables['exceptions'][] = $e; } - $this->load->view('appointments/book', $variables); + $this->load->layout('layouts/booking/booking_layout', 'pages/booking/booking_page', $variables); } /** diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php deleted file mode 100755 index 568e700f..00000000 --- a/application/views/appointments/book.php +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - - - - <?= lang('page_title') . ' ' . $company_name ?> - - - - - - - - - - - - - - - -
-
-
- - - - - - -
-
- -
-
-
- - - - - - -
-
-
-
-
- -
-
- -
-
- - - - -
-
-

- -
-
-
- - - -
- -
- - - -
- -
-
-
-
- -
-   - - -
-
- - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/application/views/layouts/booking/booking_footer.php b/application/views/layouts/booking/booking_footer.php new file mode 100644 index 00000000..cecdca4c --- /dev/null +++ b/application/views/layouts/booking/booking_footer.php @@ -0,0 +1,21 @@ + diff --git a/application/views/layouts/booking/booking_header.php b/application/views/layouts/booking/booking_header.php new file mode 100644 index 00000000..73866dc7 --- /dev/null +++ b/application/views/layouts/booking/booking_header.php @@ -0,0 +1,29 @@ + + + diff --git a/application/views/layouts/booking/booking_layout.php b/application/views/layouts/booking/booking_layout.php new file mode 100644 index 00000000..c74ca97c --- /dev/null +++ b/application/views/layouts/booking/booking_layout.php @@ -0,0 +1,116 @@ + + + + + + + + + <?= lang('page_title') . ' ' . $company_name ?> + + + + + + + + + + + + + + + +
+
+
+ + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/pages/booking/booking_cancellation.php b/application/views/pages/booking/booking_cancellation.php new file mode 100644 index 00000000..47d1f1d8 --- /dev/null +++ b/application/views/pages/booking/booking_cancellation.php @@ -0,0 +1,36 @@ + + + +
+
+ +
+
+
+ + + + + + +
+
+
+
+
+ +
+
+ +
+
+ diff --git a/application/views/pages/booking/booking_page.php b/application/views/pages/booking/booking_page.php new file mode 100755 index 00000000..4700b468 --- /dev/null +++ b/application/views/pages/booking/booking_page.php @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/pages/booking/booking_step_1.php b/application/views/pages/booking/booking_step_1.php new file mode 100644 index 00000000..d40b7808 --- /dev/null +++ b/application/views/pages/booking/booking_step_1.php @@ -0,0 +1,104 @@ +
+
+

+ +
+
+
+ + + +
+ +
+ + + +
+ +
+
+
+
+ +
+   + + +
+
diff --git a/application/views/pages/booking/booking_step_2.php b/application/views/pages/booking/booking_step_2.php new file mode 100644 index 00000000..d03299ac --- /dev/null +++ b/application/views/pages/booking/booking_step_2.php @@ -0,0 +1,36 @@ + diff --git a/application/views/pages/booking/booking_step_3.php b/application/views/pages/booking/booking_step_3.php new file mode 100644 index 00000000..efedc4aa --- /dev/null +++ b/application/views/pages/booking/booking_step_3.php @@ -0,0 +1,118 @@ + diff --git a/application/views/pages/booking/booking_step_4.php b/application/views/pages/booking/booking_step_4.php new file mode 100644 index 00000000..a0fed155 --- /dev/null +++ b/application/views/pages/booking/booking_step_4.php @@ -0,0 +1,40 @@ +