From c01bfe464e9217f09ffd9cf1a37b64b68066542f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 26 Apr 2015 16:19:54 +0200 Subject: [PATCH] converted appointment manage mode display to responsive --- src/application/views/appointments/book.php | 26 +++++----- src/application/views/appointments/cancel.php | 48 ++++++++----------- src/assets/css/frontend.css | 19 ++++---- src/assets/js/frontend_book.js | 2 +- 4 files changed, 47 insertions(+), 48 deletions(-) diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index ac7ad899..a2733b1e 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -126,17 +126,21 @@ // ------------------------------------------------------ if ($manage_mode === TRUE) { echo ' -
-

' . - $this->lang->line('cancel_appointment_hint') . - '

-
- - -
+
+
+

' . + $this->lang->line('cancel_appointment_hint') . + '

+
+
+
+ + +
+
'; } ?> diff --git a/src/application/views/appointments/cancel.php b/src/application/views/appointments/cancel.php index a3aae2e0..d276e5df 100644 --- a/src/application/views/appointments/cancel.php +++ b/src/application/views/appointments/cancel.php @@ -1,55 +1,49 @@ - <?php echo $this->lang->line('appointment_cancelled_title'); ?> - + + + <?php echo $this->lang->line('appointment_cancelled_title'); ?> - + - + + + - + - -
+ -

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

- ' . $this->lang->line('appointment_cancelled') . ''; + // Display exceptions (if any). if (isset($exceptions)) { echo '
'; diff --git a/src/assets/css/frontend.css b/src/assets/css/frontend.css index 5ec9beb8..41fdb617 100644 --- a/src/assets/css/frontend.css +++ b/src/assets/css/frontend.css @@ -215,20 +215,14 @@ body { /* CANCEL APPOINTMENT ------------------------------------------------------------------------- */ #cancel-appointment-frame { - padding: 15px; + padding: 15px 0; + margin: 0; background: #FAFAFA; border-bottom: 1px solid #E2E2E2; - overflow: auto; } #cancel-appointment-frame p { - display: inline-block; - margin: 6px 10px 0; - width: 515px; -} - -#cancel-appointment-frame form { - display: inline; + margin-top: 8px; } /* MOBILE DEVICES @@ -343,4 +337,11 @@ body { margin: auto; float: none !important; } + + /** + * CANCEL APPOINTMENT + */ + #cancel-appointment-frame { + text-align: center; + } } \ No newline at end of file diff --git a/src/assets/js/frontend_book.js b/src/assets/js/frontend_book.js index 734213bf..67083851 100644 --- a/src/assets/js/frontend_book.js +++ b/src/assets/js/frontend_book.js @@ -231,7 +231,7 @@ var FrontendBook = { EALang['write_appointment_removal_reason'], dialogButtons); $('#message_box').append(''); - $('#cancel-reason').css('width', '353px'); + $('#cancel-reason').css('width', '100%'); return false; }); }