From 222601c91261163903df5278020c13bbb00a992c Mon Sep 17 00:00:00 2001 From: aradhana kumari Date: Fri, 19 Jun 2026 13:10:14 +0530 Subject: [PATCH] Update the css class name Co-authored-by: Name --- .../themes/default/css/controllers/orders.css | 20 ++++++------- .../orders/_stay_periods_tooltip.tpl | 8 +++--- controllers/admin/AdminOrdersController.php | 2 +- js/admin/orders_stay_periods.js | 28 +++++++++---------- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/admin/themes/default/css/controllers/orders.css b/admin/themes/default/css/controllers/orders.css index 5442c326d..5f7115d51 100644 --- a/admin/themes/default/css/controllers/orders.css +++ b/admin/themes/default/css/controllers/orders.css @@ -20,38 +20,38 @@ * @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0 */ -.stay-period-tooltip { +.qlo-stay-period-tooltip { border: none; box-shadow: 0 0 5px #aaa; -webkit-box-shadow: 0 0 5px #aaa; padding-bottom: 10px; min-width: 260px; } -.stay-period-tooltip .tip_date { +.qlo-stay-period-tooltip .qlo-tip-date { font-weight: bold; } -.stay-period-tooltip .tip-body { +.qlo-stay-period-tooltip .qlo-tip-body { display: table; width: 100%; margin-top: 6px; } -.stay-period-tooltip .stay_period { +.qlo-stay-period-tooltip .qlo-stay-period { display: table-row; } -.stay-period-tooltip .tip_element_head, -.stay-period-tooltip .tip_element_value { +.qlo-stay-period-tooltip .qlo-tip-element-head, +.qlo-stay-period-tooltip .qlo-tip-element-value { display: table-cell; padding: 3px 6px; } -.stay-period-tooltip .tip_element_value { +.qlo-stay-period-tooltip .qlo-tip-element-value { text-align: right; } -.stay-period-tooltip .stay_period_header .tip_element_head, -.stay-period-tooltip .stay_period_header .tip_element_value { +.qlo-stay-period-tooltip .qlo-stay-period-header .qlo-tip-element-head, +.qlo-stay-period-tooltip .qlo-stay-period-header .qlo-tip-element-value { border-bottom: 1px solid #ddd; padding-bottom: 5px; } -.stay-period-badge { +.qlo-stay-period-badge { display: inline-flex; align-items: center; justify-content: center; diff --git a/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl b/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl index 606c2e9e5..a8b7b2b1a 100644 --- a/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl +++ b/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl @@ -25,10 +25,10 @@ style="display:none;" data-label-dates="{l s='Dates'}" data-label-rooms="{l s='Rooms'}"> -
-
-
{l s='Stay Periods'}
+
+
+
{l s='Stay Periods'}
-
+
diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 117e29bcd..bce38c46e 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -397,7 +397,7 @@ class AdminOrdersControllerCore extends AdminController $totalRooms = array_sum(array_column($formatted, 'count')); if ($totalRooms > 1) { - $output .= ' +' .($totalRooms - 1).''; } diff --git a/js/admin/orders_stay_periods.js b/js/admin/orders_stay_periods.js index 2c901344b..95fa915f8 100644 --- a/js/admin/orders_stay_periods.js +++ b/js/admin/orders_stay_periods.js @@ -1,6 +1,6 @@ /** * Stay Periods tooltip initialisation for the Admin Orders list. - * Reads structured JSON from data-stay-tip on each .stay-period-tip icon, + * Reads structured JSON from data-stay-tip on each .qlo-stay-period-tip icon, * clones the hidden #stay-period-tpl template, fills it, and returns it * as the jQuery UI tooltip content. */ @@ -8,26 +8,26 @@ $(document).ready(function () { var closeTimer = null; function buildTooltip(periods) { - var $tpl = $('#stay-period-tpl .tooltip_cont').clone(); - var $body = $tpl.find('.tip-body').empty(); + var $tpl = $('#stay-period-tpl .qlo-tooltip-cont').clone(); + var $body = $tpl.find('.qlo-tip-body').empty(); $body.append( - $('
').append( - $('').text($('#stay-period-tpl').data('label-dates')), - $('').text($('#stay-period-tpl').data('label-rooms')) + $('
').append( + $('').text($('#stay-period-tpl').data('label-dates')), + $('').text($('#stay-period-tpl').data('label-rooms')) ) ); $.each(periods, function (_, p) { $body.append( - $('
').append( - $('').text(p.from + ' – ' + p.to), - $('').text(p.count) + $('
').append( + $('').text(p.from + ' – ' + p.to), + $('').text(p.count) ) ); }); return $('
', { - 'class': 'ui-tooltip ui-widget ui-corner-all ui-widget-content stay-period-tooltip', + 'class': 'ui-tooltip ui-widget ui-corner-all ui-widget-content qlo-stay-period-tooltip', 'role' : 'tooltip' }).append( $('
').append($tpl) @@ -46,13 +46,13 @@ $(document).ready(function () { }, 300); } - $(document).on('mouseenter', '.stay-period-tip', function () { + $(document).on('mouseenter', '.qlo-stay-period-tip', function () { cancelClose(); var periods = $(this).data('stay-tip'); if (!periods || !periods.length) { return; } - $('.stay-period-tooltip').stop(true).remove(); + $('.qlo-stay-period-tooltip').stop(true).remove(); var $icon = $(this); var $tip = buildTooltip(periods).appendTo('body').hide().fadeIn(200); @@ -71,8 +71,8 @@ $(document).ready(function () { scheduleClose($tip); }); - }).on('mouseleave', '.stay-period-tip', function () { - var $tip = $('.stay-period-tooltip'); + }).on('mouseleave', '.qlo-stay-period-tip', function () { + var $tip = $('.qlo-stay-period-tooltip'); if ($tip.length) { scheduleClose($tip); }