From 03010184f665b70df12ce383cf5ea1007c35c698 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 24 Jan 2022 22:37:05 +0100 Subject: [PATCH] Improve the display of the booking link for services, providers and service-provider combinations. --- .../language/arabic/translations_lang.php | 1 + .../language/bulgarian/translations_lang.php | 1 + .../language/catalan/translations_lang.php | 1 + .../language/chinese/translations_lang.php | 1 + .../language/czech/translations_lang.php | 1 + .../language/danish/translations_lang.php | 1 + .../language/dutch/translations_lang.php | 1 + .../language/english/translations_lang.php | 1 + .../language/finnish/translations_lang.php | 1 + .../language/french/translations_lang.php | 1 + .../language/greek/translations_lang.php | 1 + .../language/hebrew/translations_lang.php | 1 + .../language/hindi/translations_lang.php | 1 + .../language/hungarian/translations_lang.php | 1 + .../language/italian/translations_lang.php | 2 ++ .../language/japanese/translations_lang.php | 1 + .../luxembourgish/translations_lang.php | 1 + .../language/marathi/translations_lang.php | 1 + .../language/polish/translations_lang.php | 1 + .../portuguese-br/translations_lang.php | 1 + .../language/portuguese/translations_lang.php | 1 + .../language/romanian/translations_lang.php | 1 + .../language/russian/translations_lang.php | 1 + .../language/slovak/translations_lang.php | 1 + .../language/spanish/translations_lang.php | 1 + .../language/swedish/translations_lang.php | 1 + .../language/turkish/translations_lang.php | 1 + assets/css/layouts/backend_layout.scss | 20 ++++++++++++++----- assets/js/pages/providers.js | 14 +++++++++++-- assets/js/pages/services.js | 7 ++++++- 30 files changed, 61 insertions(+), 8 deletions(-) diff --git a/application/language/arabic/translations_lang.php b/application/language/arabic/translations_lang.php index 87371b80..71cbe75f 100755 --- a/application/language/arabic/translations_lang.php +++ b/application/language/arabic/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/bulgarian/translations_lang.php b/application/language/bulgarian/translations_lang.php index 024650d3..6bb6673e 100755 --- a/application/language/bulgarian/translations_lang.php +++ b/application/language/bulgarian/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/catalan/translations_lang.php b/application/language/catalan/translations_lang.php index 585d069c..a96eea57 100644 --- a/application/language/catalan/translations_lang.php +++ b/application/language/catalan/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/chinese/translations_lang.php b/application/language/chinese/translations_lang.php index 6aaa104f..7d619690 100755 --- a/application/language/chinese/translations_lang.php +++ b/application/language/chinese/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/czech/translations_lang.php b/application/language/czech/translations_lang.php index bf9dc724..4ac70b76 100644 --- a/application/language/czech/translations_lang.php +++ b/application/language/czech/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/danish/translations_lang.php b/application/language/danish/translations_lang.php index c0e1201b..20391b85 100755 --- a/application/language/danish/translations_lang.php +++ b/application/language/danish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/dutch/translations_lang.php b/application/language/dutch/translations_lang.php index 9c8ae405..e5b5d218 100755 --- a/application/language/dutch/translations_lang.php +++ b/application/language/dutch/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/english/translations_lang.php b/application/language/english/translations_lang.php index 7869c791..045ccef9 100755 --- a/application/language/english/translations_lang.php +++ b/application/language/english/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/finnish/translations_lang.php b/application/language/finnish/translations_lang.php index e5dc699d..6f125902 100755 --- a/application/language/finnish/translations_lang.php +++ b/application/language/finnish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/french/translations_lang.php b/application/language/french/translations_lang.php index 1a0e3693..1684b3a5 100755 --- a/application/language/french/translations_lang.php +++ b/application/language/french/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/greek/translations_lang.php b/application/language/greek/translations_lang.php index 75724f6b..0a843348 100755 --- a/application/language/greek/translations_lang.php +++ b/application/language/greek/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/hebrew/translations_lang.php b/application/language/hebrew/translations_lang.php index 67d21837..44517703 100644 --- a/application/language/hebrew/translations_lang.php +++ b/application/language/hebrew/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/hindi/translations_lang.php b/application/language/hindi/translations_lang.php index ff009707..918cb6b2 100755 --- a/application/language/hindi/translations_lang.php +++ b/application/language/hindi/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/hungarian/translations_lang.php b/application/language/hungarian/translations_lang.php index bc2d07ab..7b9c1e98 100755 --- a/application/language/hungarian/translations_lang.php +++ b/application/language/hungarian/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/italian/translations_lang.php b/application/language/italian/translations_lang.php index ffc5cfa8..fbd7612a 100755 --- a/application/language/italian/translations_lang.php +++ b/application/language/italian/translations_lang.php @@ -361,4 +361,6 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['copy'] = 'Copy'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/japanese/translations_lang.php b/application/language/japanese/translations_lang.php index 53b824f7..281d1bb4 100755 --- a/application/language/japanese/translations_lang.php +++ b/application/language/japanese/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/luxembourgish/translations_lang.php b/application/language/luxembourgish/translations_lang.php index 99daedf4..e34692f9 100755 --- a/application/language/luxembourgish/translations_lang.php +++ b/application/language/luxembourgish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/marathi/translations_lang.php b/application/language/marathi/translations_lang.php index c7a946fa..415d14cb 100644 --- a/application/language/marathi/translations_lang.php +++ b/application/language/marathi/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/polish/translations_lang.php b/application/language/polish/translations_lang.php index c18d2f4a..a8522fb2 100755 --- a/application/language/polish/translations_lang.php +++ b/application/language/polish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/portuguese-br/translations_lang.php b/application/language/portuguese-br/translations_lang.php index e3620e6c..ef5e4a46 100755 --- a/application/language/portuguese-br/translations_lang.php +++ b/application/language/portuguese-br/translations_lang.php @@ -360,4 +360,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/portuguese/translations_lang.php b/application/language/portuguese/translations_lang.php index f906d3c2..54b7171a 100755 --- a/application/language/portuguese/translations_lang.php +++ b/application/language/portuguese/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/romanian/translations_lang.php b/application/language/romanian/translations_lang.php index caf9493a..cb25a330 100755 --- a/application/language/romanian/translations_lang.php +++ b/application/language/romanian/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/russian/translations_lang.php b/application/language/russian/translations_lang.php index ae03d629..ec32975f 100755 --- a/application/language/russian/translations_lang.php +++ b/application/language/russian/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/slovak/translations_lang.php b/application/language/slovak/translations_lang.php index 3caf7aeb..82e9388d 100755 --- a/application/language/slovak/translations_lang.php +++ b/application/language/slovak/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/spanish/translations_lang.php b/application/language/spanish/translations_lang.php index 2caa7c29..a90c90b0 100755 --- a/application/language/spanish/translations_lang.php +++ b/application/language/spanish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/swedish/translations_lang.php b/application/language/swedish/translations_lang.php index 42ed281c..4fa7a4a8 100644 --- a/application/language/swedish/translations_lang.php +++ b/application/language/swedish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/application/language/turkish/translations_lang.php b/application/language/turkish/translations_lang.php index f1a7f38d..fc789c0d 100755 --- a/application/language/turkish/translations_lang.php +++ b/application/language/turkish/translations_lang.php @@ -361,4 +361,5 @@ $lang['private'] = 'Private'; $lang['private_hint'] = 'Private records will not be displayed or processed in public pages such as the booking page.'; $lang['reset'] = 'Reset'; $lang['all'] = 'All'; +$lang['booking_link'] = 'Booking Link'; // End diff --git a/assets/css/layouts/backend_layout.scss b/assets/css/layouts/backend_layout.scss index 4fca0c5c..aca1c291 100644 --- a/assets/css/layouts/backend_layout.scss +++ b/assets/css/layouts/backend_layout.scss @@ -652,8 +652,10 @@ body .form-horizontal .controls { } #services-page .record-details h3 a { - font-size: 24px; - margin-left: 10px; + display: block; + margin: 1rem 0; + font-size: 1rem; + text-decoration: none; } /* BACKEND USERS PAGE @@ -767,12 +769,20 @@ body .form-horizontal .controls { } #providers-page #providers .record-details h3 a { - font-size: 24px; - margin-left: 10px; + display: block; + margin: 1rem 0; + font-size: 1rem; + text-decoration: none; } #providers-page #providers .record-details #provider-services .checkbox a { - margin-left: 5px; + display: block; + text-decoration: none; + text-transform: uppercase; + font-size: 75%; + margin-top: 5px; + margin-left: -20px; + margin-bottom: 5px; } /* BACKEND SETTINGS PAGE diff --git a/assets/js/pages/providers.js b/assets/js/pages/providers.js index e7bec453..59ec792d 100755 --- a/assets/js/pages/providers.js +++ b/assets/js/pages/providers.js @@ -395,9 +395,14 @@ App.Pages.Providers = (function () { let dedicatedUrl = App.Utils.Url.siteUrl('?provider=' + encodeURIComponent(provider.id)); let $link = $('', { 'href': dedicatedUrl, + 'target': '_blank', 'html': [ + $('', { + 'class': 'fas fa-link me-2' + }), + $('', { - 'class': 'fas fa-link' + 'text': lang('booking_link') }) ] }); @@ -423,9 +428,14 @@ App.Pages.Providers = (function () { $link = $('', { 'href': dedicatedUrl, + 'target': '_blank', 'html': [ + $('', { + 'class': 'fas fa-link me-2' + }), + $('', { - 'class': 'fas fa-link' + 'text': lang('booking_link') }) ] }); diff --git a/assets/js/pages/services.js b/assets/js/pages/services.js index 8936082c..b91eccf2 100644 --- a/assets/js/pages/services.js +++ b/assets/js/pages/services.js @@ -69,9 +69,14 @@ App.Pages.Services = (function () { const $link = $('', { 'href': dedicatedUrl, + 'target': '_blank', 'html': [ + $('', { + 'class': 'fas fa-link me-2' + }), + $('', { - 'class': 'fas fa-link' + 'text': lang('booking_link') }) ] });