diff --git a/admin-dev/themes/default/js/admin-theme.js b/admin-dev/themes/default/js/admin-theme.js
index e8c42601d..5d49e1189 100644
--- a/admin-dev/themes/default/js/admin-theme.js
+++ b/admin-dev/themes/default/js/admin-theme.js
@@ -478,11 +478,13 @@ $(document).ready(function() {
$('.no-htl-access-option').on('click', function() {
$(this).prop('selected', false);
});
- initTooltip();
+
+ initUITooltip();
+
}); //end dom ready
-function initTooltip($target, contentFn, items) {
- var $elements = $target || $('.tooltip-trigger');
+function initUITooltip($target, contentFn, items) {
+ var $elements = $target || $('.ui-tooltip-trigger');
if (!$elements.length) {
return;
}
@@ -491,11 +493,11 @@ function initTooltip($target, contentFn, items) {
if (!contentFn && $this.data('ui-tooltip')) {
return;
}
- $this.tooltip({
+ $this.uiTooltip({
content: contentFn || $this.next('.tooltip-content').html(),
items: items || 'span',
trigger: 'hover',
- tooltipClass: 'tooltip-popup',
+ tooltipClass: 'ui-tooltip-popup',
open: function (event, ui) {
if (event.buttons == 1 || event.buttons == 3) {
ui.tooltip.remove();
diff --git a/admin-dev/themes/default/sass/partials/_tooltip.sass b/admin-dev/themes/default/sass/partials/_tooltip.sass
index d1f445386..f3ef5f4b2 100644
--- a/admin-dev/themes/default/sass/partials/_tooltip.sass
+++ b/admin-dev/themes/default/sass/partials/_tooltip.sass
@@ -1,57 +1,44 @@
-.tooltip_cont
- width: 100%
- font-size: 14px
- font-weight: 600
- .tip_header
- margin-bottom: 10px
- .tip-body > div
- margin-bottom: 6px
- margin-right: 10px
-
-.tip_element_head
- font-size: 12px
-
-.tip_element_value
- font-size: 14px
- font-weight: 400
- opacity: 0.8
-
-.tip-body
- display: grid
- grid-template-columns: auto auto
- &.tip-body-grid
- grid-template-columns: 1fr 1fr
- gap: 8px 16px
-
-.ui-tooltip,
-.ui-tooltip.ui-widget-content
+.ui-tooltip.ui-tooltip-popup
border: none
padding: 10px
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15)
width: auto
-.tooltip-trigger
+.ui-tooltip-trigger
cursor: pointer
display: inline-block
vertical-align: middle
+.ui-tooltip-content
+ width: 100%
+.ui-tooltip-wrapper
+ width: 100%
+ font-size: 14px
+ font-weight: 600
-.ui-tooltip.tooltip-popup
- ul
- margin: 0
- padding: 0 0 0 16px
- list-style: disc
- li
- padding: 2px 0
+.ui-tooltip-header
+ margin-bottom: 5px
-.tooltip-popup-row
- display: flex
- justify-content: space-between
- align-items: center
- gap: 12px
- margin: 3px 0
- white-space: nowrap
- label
- font-weight: 600
- margin: 0
+.ui-tooltip-body
+
+ > div
+ margin-bottom: 6px
+ margin-right: 10px
+ &.ui-tooltip-body-grid
+ display: grid
+ grid-template-columns: auto auto
+ grid-template-columns: 1fr 1fr
+ gap: 8px 2px
+
+.ui-tooltip-elem-head
+ font-size: 12px
+
+.ui-tooltip-elem-txt
+ font-size: 13px
+ font-weight: 400
+ opacity: 0.8
+
+.ui-tooltip-label
+ font-weight: 600
+ margin: 0
diff --git a/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/_hotel_names_tooltip.tpl b/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/_hotel_names_tooltip.tpl
index 469679641..eca4b71f3 100644
--- a/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/_hotel_names_tooltip.tpl
+++ b/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/_hotel_names_tooltip.tpl
@@ -24,17 +24,17 @@
{$hotel_names_first|escape:'html':'UTF-8'}
{if $hotel_names_remaining}
{capture name='hotel_names_tooltip'}
-
-
+
{/capture}
- {capture name='hotel_names_tooltip_title'}
+{$hotel_names_remaining|@count}{/capture}
- {include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.hotel_names_tooltip tooltip_title=$smarty.capture.hotel_names_tooltip_title}
+ {capture name='hotel_names_tooltip_title'}
+{$hotel_names_remaining|@count}{/capture}
+ {include file='helpers/ui-tooltip.tpl' tooltip_content=$smarty.capture.hotel_names_tooltip tooltip_title=$smarty.capture.hotel_names_tooltip_title}
{/if}
{else}
--
diff --git a/admin-dev/themes/default/template/controllers/orders/_hotel_service_products_table.tpl b/admin-dev/themes/default/template/controllers/orders/_hotel_service_products_table.tpl
index 6d3920f82..b04e66d96 100644
--- a/admin-dev/themes/default/template/controllers/orders/_hotel_service_products_table.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_hotel_service_products_table.tpl
@@ -69,21 +69,21 @@
{displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id}
{if isset($use_tourism_tax) && $use_tourism_tax && isset($product.tourism_tax_status)}
-
-
-
-
-
-
- {displayPrice price=$product.total_service_tax_only currency=$currency->id}
+ {capture name='service_tax_tooltip_content'}
+
+
+
+ {displayPrice price=$product.total_service_tax_only currency=$currency->id}
+
+ {if $product.tourism_tax_total > 0}
+
+
+ {displayPrice price=$product.tourism_tax_total currency=$currency->id}
+
+ {/if}
- {if $product.tourism_tax_total > 0}
-
-
- {displayPrice price=$product.tourism_tax_total currency=$currency->id}
-
- {/if}
-
+ {/capture}
+ {include file='helpers/ui-tooltip.tpl' tooltip_content=$smarty.capture.service_tax_tooltip_content}
{/if}
|
diff --git a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl
index 9e5bb1bbe..9576af251 100644
--- a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl
@@ -105,21 +105,21 @@
|
{convertPriceWithCurrency price=($data['total_room_tax']) currency=$currency->id}
-
-
-
-
-
-
- {convertPriceWithCurrency price=$data.total_room_service_tax_only currency=$currency->id}
+ {capture name='room_tax_tooltip_content'}
+
+
+
+ {convertPriceWithCurrency price=$data.total_room_service_tax_only currency=$currency->id}
{if isset($data.tourism_tax_total) && $data.tourism_tax_total > 0}
-
-
- {convertPriceWithCurrency price=$data.tourism_tax_total currency=$currency->id}
+
+
+ {convertPriceWithCurrency price=$data.tourism_tax_total currency=$currency->id}
{/if}
+ {/capture}
+ {include file='helpers/ui-tooltip.tpl' tooltip_content=$smarty.capture.room_tax_tooltip_content}
|
{convertPriceWithCurrency price=($data['total_room_price_ti']) currency=$currency->id}
diff --git a/admin-dev/themes/default/template/controllers/orders/_standalone_service_products_table.tpl b/admin-dev/themes/default/template/controllers/orders/_standalone_service_products_table.tpl
index 85438f428..b6c8f044e 100644
--- a/admin-dev/themes/default/template/controllers/orders/_standalone_service_products_table.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_standalone_service_products_table.tpl
@@ -69,21 +69,21 @@
|
{displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id}
{if isset($use_tourism_tax) && $use_tourism_tax && isset($product.tourism_tax_status)}
-
-
-
-
-
-
- {displayPrice price=$product.total_service_tax_only currency=$currency->id}
+ {capture name='service_tax_tooltip_content'}
+
+
+
+ {displayPrice price=$product.total_service_tax_only currency=$currency->id}
+
+ {if $product.tourism_tax_total > 0}
+
+
+ {displayPrice price=$product.tourism_tax_total currency=$currency->id}
+
+ {/if}
- {if $product.tourism_tax_total > 0}
-
-
- {displayPrice price=$product.tourism_tax_total currency=$currency->id}
-
- {/if}
-
+ {/capture}
+ {include file='helpers/ui-tooltip.tpl' tooltip_content=$smarty.capture.service_tax_tooltip_content}
{/if}
|
diff --git a/admin-dev/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl b/admin-dev/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl
index eb98c6735..83c806528 100644
--- a/admin-dev/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl
@@ -21,27 +21,27 @@
*}
{capture name='stay_periods_tooltip'}
-
- |