diff --git a/admin/themes/default/sass/admin-theme.sass b/admin/themes/default/sass/admin-theme.sass index 33b4084b0..1e196b8df 100644 --- a/admin/themes/default/sass/admin-theme.sass +++ b/admin/themes/default/sass/admin-theme.sass @@ -108,6 +108,8 @@ @import "partials/select2" @import "partials/ndv3" +@import "partials/tooltip" + //Backward compatibility @import "partials/backward" diff --git a/admin/themes/default/sass/admin-theme_rtl.sass b/admin/themes/default/sass/admin-theme_rtl.sass index 712d08aa9..63af964be 100644 --- a/admin/themes/default/sass/admin-theme_rtl.sass +++ b/admin/themes/default/sass/admin-theme_rtl.sass @@ -112,6 +112,8 @@ //RTL @import "partials/rtl" +@import "partials/tooltip" + //Backward compatibility @import "partials/backward" diff --git a/admin/themes/default/sass/partials/_tooltip.sass b/admin/themes/default/sass/partials/_tooltip.sass new file mode 100644 index 000000000..986d49667 --- /dev/null +++ b/admin/themes/default/sass/partials/_tooltip.sass @@ -0,0 +1,30 @@ +.tooltip_cont + min-width: 280px + width: 100% + font-size: 14px + font-weight: 600 + .tip_header + margin-bottom: 10px + .tip-body > div + margin-bottom: 6px + +.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 + border: none + padding: 10px + box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15) diff --git a/admin/themes/default/template/controllers/access/helpers/form/form.tpl b/admin/themes/default/template/controllers/access/helpers/form/form.tpl index d3f2a73f8..7c5a71acc 100644 --- a/admin/themes/default/template/controllers/access/helpers/form/form.tpl +++ b/admin/themes/default/template/controllers/access/helpers/form/form.tpl @@ -107,6 +107,47 @@ } perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table); + if (perm == 'kpi') { + $(table + ' .kpi.' + id_tab).prop('checked', !!enabled); + } + + $(table + ' tr.kpi-row').each(function() { + var kpiTabId = $(this).data('kpi-parent'); + var kpiProfile = $(this).data('kpi-profile'); + var $kpiInputs = $(this).find('input.ajaxPower.kpi'); + if (!$kpiInputs.length || $kpiInputs.first().data('kpi-editable') != 1) { return; } + // For perm=view, read state directly from action — jQuery 1.11 .attr() doesn't update .prop() + var parentEnabled = (perm == 'view' && (id_tab == kpiTabId || id_tab == -1)) + ? !!enabled + : $(table + ' input.view.' + kpiTabId).first().is(':checked'); + if (!parentEnabled) { + $kpiInputs.prop('checked', false).prop('disabled', true); + } else { + $kpiInputs.prop('disabled', false); + if (perm == 'all' && (id_tab == -1 || id_tab == kpiTabId)) { + $kpiInputs.prop('checked', !!enabled).first().trigger('change'); + } + if (perm == 'view' && (id_tab == kpiTabId || id_tab == -1) && !!enabled) { + $kpiInputs.prop('checked', true); + $.ajax({ + url: "{$link->getAdminLink('AdminAccess')|addslashes}", + cache: false, + data: { + ajaxMode: '1', + id_tab: kpiTabId, + id_profile: kpiProfile, + perm: 'kpi', + enabled: 1, + submitAddAccess: '1', + action: 'updateAccess', + ajax: '1', + token: '{getAdminToken tab='AdminAccess'}' + } + }); + } + } + }); + $.ajax({ url: "{$link->getAdminLink('AdminAccess')|addslashes}", cache: false, @@ -349,6 +390,32 @@ + {if !empty($tab.has_kpi)} +
{$data.room_type|escape:'html':'UTF-8'}
@@ -130,7 +135,7 @@ {*{$data.room_num}
+{$data.room_num} + {if isset($data['connected_rooms'][$data.id_room])} + {include file="controllers/products/connected-rooms.tpl" htl_connected_rooms=$data['connected_rooms'][$data.id_room]} + {/if} +
{if $data.is_back_order} {l s='overbooked'} {/if} diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index cbc87b3f8..407468c3b 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -456,7 +456,7 @@{dateFormat date=$part_v['date_from'] full=$is_full_date} - {dateFormat date=$part_v['date_to'] full=$is_full_date}
{/if} -Management reply
@@ -244,7 +244,7 @@ You can view your review from here. - +Management reply
@@ -238,7 +238,7 @@ Management reply: {management_reply} - +Please review us!
@@ -222,7 +222,7 @@ Could you please take a moment to review us? Please review your stay at {hotel_name} by clicking here. We would love to hear your feedback and use it to improve our services! - +{l s='Allowed formats are: .jpg, .jpeg, .png' mod='qlohotelreview'}
diff --git a/modules/wkfooterlangcurrencyblock/config.xml b/modules/wkfooterlangcurrencyblock/config.xml deleted file mode 100644 index 83e560e71..000000000 --- a/modules/wkfooterlangcurrencyblock/config.xml +++ /dev/null @@ -1,12 +0,0 @@ - -
+
|
+ |||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||
+
|
+ {* *} + |
+
|
+ |||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||
+
|
+ |||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||
+
|
+ |||||||||||||||||||||||||||||||||||||||
+
|
+
+
|
+ ||||||||||||||||||||||||||
| {l s='CANCELLATION POLICY' pdf='true'} | +|
|---|---|
| {$cancellation_policy nofilter} | +
| {l s='PROPERTY POLICIES' pdf='true'} | +
|---|
| + {l s='Check-in Time:' pdf='true'} + {if $hotel && $hotel->check_in && $hotel->check_in != '00:00:00'}{$hotel->check_in|escape:'html':'UTF-8'}{else}__________{/if} + + {l s='Check-out Time:' pdf='true'} + {if $hotel && $hotel->check_out && $hotel->check_out != '00:00:00'}{$hotel->check_out|escape:'html':'UTF-8'}{else}__________{/if} + | +
|
+ {l s='Hotel Policies:' pdf='true'} + + {if isset($payment_policy) && $payment_policy|strip_tags|trim} + {$payment_policy nofilter} + {else} + ______________________________ + ______________________________ + ______________________________ + {/if} + |
+
| {$HOOK_DISPLAY_PDF} | +
|
+ {if !empty($hotel_address)}
+ {l s='Hotel Detail' pdf='true'} + {$hotel_address} + {/if} + |
+ + |
+ {l s='Customer Detail' pdf='true'} + {if $invoice_address} + {$invoice_address} + {else} + {$customer->firstname} {$customer->lastname} + + {$customer->phone} + {/if} + |
+
| {l s='Payment Details' pdf='true'} | +||||
|---|---|---|---|---|
| {l s='Payment Method' pdf='true'} | +{l s='Payment Type' pdf='true'} | +{l s='Transaction ID' pdf='true'} | +{l s='Amount' pdf='true'} | +{l s='Payment Date' pdf='true'} | +
| {$payment->payment_method|default:'-'} | +{$payment->payment_type.name|default:'-'} | +{$payment->transaction_id|default:'-'} | +{displayPrice currency=$payment->id_currency price=$payment->amount} | +{dateFormat date=$payment->date_add full=true} | +
| + + {$addresses_tab} + + | +||||||||||||
| + | ||||||||||||
| + {$payment_info_tab} + | +||||||||||||
| + | ||||||||||||
+
+
|
+ ||||||||||||
| + | ||||||||||||
| + {$HOOK_DISPLAY_PDF} + | +||||||||||||