From 7a496f016612fa0a2eed46842bc50f99f33654d2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 31 Aug 2020 17:26:28 +0300 Subject: [PATCH] Added additional styling for the appointment cancellation and customer data removal modals. --- application/views/appointments/book.php | 9 ++++-- assets/css/frontend.css | 8 ++---- assets/css/general.css | 18 +++++++----- assets/js/frontend_book.js | 38 +++++++++++++++---------- 4 files changed, 43 insertions(+), 30 deletions(-) diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php index be5d887d..b3664254 100755 --- a/application/views/appointments/book.php +++ b/application/views/appointments/book.php @@ -55,9 +55,14 @@
+ + - + +
@@ -67,7 +72,7 @@
+ class="btn btn-danger">
diff --git a/assets/css/frontend.css b/assets/css/frontend.css index 0b62db56..c9ab7466 100644 --- a/assets/css/frontend.css +++ b/assets/css/frontend.css @@ -369,9 +369,9 @@ body { ------------------------------------------------------------------------- */ .booking-header-bar { - padding: 10px 0; + padding: 15px 0; margin: 0; - background: #FAFAFA; + background: #f6f5ee; border-bottom: 1px solid #E2E2E2; } @@ -380,10 +380,6 @@ body { margin-bottom: 0; } -#cancel-appointment-frame { - text-align: center; -} - .ui-dialog .ui-dialog-title { font-size: 1.2em; } diff --git a/assets/css/general.css b/assets/css/general.css index 1efd4668..1a7f4bed 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -27,7 +27,7 @@ body .custom-qtip { } body .ui-widget { - font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1.1em; } @@ -42,14 +42,14 @@ body .ui-dialog .ui-dialog-titlebar-close { } body .ui-draggable .ui-dialog-titlebar { - background: #39c678; + background: #429a82; color: #FFF; - font-size: 1.5em; + font-size: 1.2em; font-weight: lighter; padding: 12px 10px; - border: none; - border-bottom: 4px solid #c0f1d6; margin-bottom: 10px; + border: none; + border-radius: 0; } body .ui-dialog { @@ -64,6 +64,10 @@ body .ui-dialog .ui-dialog-buttonpane { border: none; } +body .ui-dialog .ui-dialog-buttonpane .btn { + min-width: 120px; +} + body .ui-button .ui-icon, body .ui-button:hover .ui-icon { background-image: url('../ext/jquery-ui/images/ui-icons_222222_256x240.png'); @@ -177,8 +181,8 @@ body .ui-widget-header .ui-priority-primary { body .ui-widget input, .ui-widget select, body .ui-widget textarea, body .ui-widget button { - font-family: Arial, Helvetica, sans-serif; - font-size: 12px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-size: 1rem; } body .ui-datepicker .ui-datepicker-buttonpane button { diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 1824a9fc..b2a2f913 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -368,46 +368,54 @@ window.FrontendBook = window.FrontendBook || {}; */ $('#cancel-appointment').click(function (event) { var buttons = [ + { + text: EALang.cancel, + click: function () { + $('#message_box').dialog('close'); + } + }, { text: 'OK', click: function () { if ($('#cancel-reason').val() === '') { - $('#cancel-reason').css('border', '2px solid red'); + $('#cancel-reason').css('border', '2px solid #DC3545'); return; } $('#cancel-appointment-form textarea').val($('#cancel-reason').val()); $('#cancel-appointment-form').submit(); } - }, - { - text: EALang.cancel, - click: function () { - $('#message_box').dialog('close'); - } } ]; GeneralFunctions.displayMessageBox(EALang.cancel_appointment_title, EALang.write_appointment_removal_reason, buttons); - $('#message_box').append(''); - $('#cancel-reason').css('width', '100%'); + $('