diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index f8aaed25..387997ea 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -3,6 +3,7 @@ <?php echo $this->lang->line('page_title') . ' ' . $company_name; ?> + @@ -85,7 +86,7 @@ $(document).ready(function() { FrontendBook.initialize(true, GlobalVariables.manageMode); - GeneralFunctions.centerElementOnPage($('#book-appointment-wizard')); + // GeneralFunctions.centerElementOnPage($('#book-appointment-wizard')); GeneralFunctions.enableLanguageSelection($('#select-language')); }); @@ -93,297 +94,298 @@
- -
- - - '; - } - ?> - -
-
-

lang->line('step_one_title'); ?>

- -
-
- - - + $group) { - $group_label = ($key != 'uncategorized') - ? $group[0]['category_name'] : 'Uncategorized'; - - if (count($group) > 0) { - echo ''; - foreach($group as $service) { - echo ''; + foreach($available_services as $service) { + if ($service['category_id'] != NULL) { + if (!isset($grouped_services[$service['category_name']])) { + $grouped_services[$service['category_name']] = array(); + } + + $grouped_services[$service['category_name']][] = $service; + } + } + + // We need the uncategorized services at the end of the list so + // we will use another iteration only for the uncategorized services. + $grouped_services['uncategorized'] = array(); + foreach($available_services as $service) { + if ($service['category_id'] == NULL) { + $grouped_services['uncategorized'][] = $service; } - echo ''; + } + + foreach($grouped_services as $key => $group) { + $group_label = ($key != 'uncategorized') + ? $group[0]['category_name'] : 'Uncategorized'; + + if (count($group) > 0) { + echo ''; + foreach($group as $service) { + echo ''; + } + echo ''; + } + } + } else { + foreach($available_services as $service) { + echo ''; } } - } else { - foreach($available_services as $service) { - echo ''; - } - } - ?> - -
- -
- + ?> + +
- +
+ + + +
+ +
+
+ +
+ +
+
+ + + - -
- -
-
+

lang->line('step_two_title'); ?>

+ +
+
+
+
- - - - - - - -
diff --git a/src/assets/css/frontend.css b/src/assets/css/frontend.css index b4afa4cc..1876f87e 100644 --- a/src/assets/css/frontend.css +++ b/src/assets/css/frontend.css @@ -13,18 +13,35 @@ root { display: block; } + +html, +body { + height: 100%; +} + body { background-color: #CAEDF3; } +#main { + display: table; + vertical-align: middle; +} + +#main .wrapper { + height: 100vh; + display: table-cell; + vertical-align: middle; +} + /* BOOK APPOINTMENT WIZARD ------------------------------------------------------------------------------ */ #book-appointment-wizard { - width: 660px; background: #FFF; box-shadow: 0px 1px 1px #B6B6B6; min-height: 480px; + padding: 0; } #book-appointment-wizard #header {