diff --git a/controllers/front/OrderDetailController.php b/controllers/front/OrderDetailController.php
index a9064b46e..28762422a 100644
--- a/controllers/front/OrderDetailController.php
+++ b/controllers/front/OrderDetailController.php
@@ -386,6 +386,10 @@ class OrderDetailControllerCore extends FrontController
$idHotel = HotelBookingDetail::getIdHotelByIdOrder($order->id);
$objHotelBranchInformation = new HotelBranchInformation($idHotel, $this->context->language->id);
$hotelAddressInfo = HotelBranchInformation::getAddress($idHotel);
+
+ $objHotelBranchRefundRules = new HotelBranchRefundRules();
+ $hotelRefundRules = $objHotelBranchRefundRules->getHotelRefundRules($idHotel, 0, 1);
+
$this->context->smarty->assign(
array(
'id_cms_refund_policy' => Configuration::get('WK_GLOBAL_REFUND_POLICY_CMS'),
@@ -403,6 +407,7 @@ class OrderDetailControllerCore extends FrontController
'non_requested_rooms' => $nonRequestedRooms,
'obj_hotel_branch_information' => $objHotelBranchInformation,
'hotel_address_info' => $hotelAddressInfo,
+ 'hotel_refund_rules' => $hotelRefundRules,
)
);
// }
diff --git a/themes/hotel-reservation-theme/_partials/booking-message.tpl b/themes/hotel-reservation-theme/_partials/booking-message.tpl
index ff3d66c85..70192c1fd 100644
--- a/themes/hotel-reservation-theme/_partials/booking-message.tpl
+++ b/themes/hotel-reservation-theme/_partials/booking-message.tpl
@@ -22,12 +22,10 @@
- {if isset($message.elastname) && $message.elastname}
- {$message.efirstname|escape:'html':'UTF-8'} {$message.elastname|escape:'html':'UTF-8'}
- {elseif $message.clastname}
- {$message.cfirstname|escape:'html':'UTF-8'} {$message.clastname|escape:'html':'UTF-8'}
+ {if $message.id_employee}
+ {$obj_hotel_branch_information->hotel_name|escape:'html':'UTF-8'}
{else}
- {$shop_name|escape:'html':'UTF-8'}
+ {$message.cfirstname|escape:'html':'UTF-8'} {$message.clastname|escape:'html':'UTF-8'}
{/if}
diff --git a/themes/hotel-reservation-theme/css/order-detail.css b/themes/hotel-reservation-theme/css/order-detail.css
index b84e42967..d2f48eb3f 100644
--- a/themes/hotel-reservation-theme/css/order-detail.css
+++ b/themes/hotel-reservation-theme/css/order-detail.css
@@ -18,12 +18,23 @@
*/
/* elements - start */
+#center_column .row {
+ margin-left: -10px;
+ margin-right: -10px
+}
+
+#center_column .row > [class^="col-"] {
+ padding-left: 10px;
+ padding-right: 10px
+}
+
.well.well-order-date {
background: #2FA368;
- padding: 16px 15px;
+ padding: 20px 20px;
border-radius: 4px;
color: #FFF;
- font-size: 16px;
+ font-size: 18px;
+ margin-bottom: 30px;
}
.card {
@@ -36,14 +47,18 @@
}
.card .card-header {
- padding: 10px 15px;
+ padding: 14px 18px;
margin-bottom: 0;
border-bottom: 1px solid #E5E5E5;
- font-size: 20px;
+ font-size: 19px;
font-weight: bold;
line-height: 27px;
}
+.card.card-toolbar .card-header {
+ padding: 8px 18px;
+}
+
.card .card-subheader {
margin-bottom: 0;
font-size: 14px;
@@ -51,7 +66,7 @@
}
.card .card-body {
- padding: 15px;
+ padding: 18px;
}
.card .card-body .card-title {
@@ -72,6 +87,32 @@
line-height: 26px;
}
+/* card-tabs - start */
+.card.card-tabs .nav-tabs {
+ border: none;
+}
+
+.card.card-tabs .nav-tabs li > a {
+ padding: 0 20px;
+ border: none;
+ color: #333;
+}
+
+.card.card-tabs .nav-tabs li.active:after {
+ content: '';
+ position: absolute;
+ top: 39px;
+ width: 100%;
+ height: 2px;
+ background: #379aef;
+}
+
+.card.card-tabs .tab-content {
+ margin-top: 0;
+}
+
+/* card-tabs - end */
+
.description-list {
margin-top: 12px;
}
@@ -83,7 +124,7 @@
.description-list dt,
.description-list dd {
- margin: 5px 0;
+ margin: 7px 0;
}
.description-list dd .hotel-email {
@@ -94,9 +135,18 @@
font-size: 12px;
}
+.card-body > .description-list {
+ margin-top: 0;
+}
+
.hotel-location p.hotel-address {
font-size: 16px;
line-height: 24px;
+ margin-bottom: 20px;
+}
+
+.hotel-location .hotel-location-map {
+ border-radius: 4px;
}
.booking-hotel-map-container {
@@ -110,15 +160,15 @@
.table.table-summary td {
border-top: none;
- font-size: 14px;
+ font-size: 16px;
}
.table.table-summary.table-sm td {
- padding: 6px 0;
+ padding: 8px 0;
}
.table.table-summary .price {
- font-size: 14px;
+ font-size: 16px;
color: #333;
}
@@ -174,7 +224,8 @@
}
.booking-room-detail .num-refunded-rooms .badge {
- padding: 8px;
+ padding: 5px;
+ font-weight: normal;
font-size: 12px;
border-radius: 2px;
}
@@ -193,16 +244,30 @@
}
}
-.order-messages .card-body {
- padding: 0;
+.hotel-policies .refund-policies-list .refund-policy:not(:last-of-type) {
+ margin-bottom: 10px;
}
-.order-messages .message {
- padding: 20px;
+.hotel-policies .refund-policies-list .refund-rule-name {
+ margin: 0;
+ font-size: 14px;
+ line-height: 22px;
+ font-weight: bold;
+}
+
+.hotel-policies .refund-policies-list .refund-rule-description {
+ margin-top: 10px;
+ font-size: 14px;
+ line-height: 22px;
+ padding-left: 14px;
+}
+
+.order-messages .message:not(:first-of-type) {
+ margin-top: 20px;
}
.order-messages .message.management {
- margin: 0 20px;
+ padding: 20px 0 20px 20px;
border-left: 1px solid #333;
background-color: rgba(229, 229, 229, 0.30);
}
@@ -217,15 +282,21 @@
height: 8px;
}
+.add-order-message .select-room-type label {
+ font-size: 16px;
+ margin-bottom: 10px;
+}
+
.add-order-message .dropdown {
- width: 300px;
+ width: 350px;
}
.add-order-message .dropdown button {
- min-width: 300px;
+ min-width: 350px;
+ padding: 12px 15px;
text-align: left;
font-size: 16px;
- color: #0006;
+ color: #000a;
border: 1px solid #E5E5E5;
border-radius: 4px;
}
@@ -233,7 +304,7 @@
.add-order-message .dropdown button::after {
content: '\2304';
position: absolute;
- top: -7px;
+ top: -2px;
right: 10px;
font-size: 28px;
font-weight: 100;
@@ -248,17 +319,32 @@
}
.add-order-message .dropdown .dropdown-menu > li > a {
- padding-top: 4px;
- padding-bottom: 4px;
+ padding-top: 10px;
+ padding-bottom: 10px;
font-size: 16px;
}
+.add-order-message form .form-group.textarea {
+ margin-bottom: 20px;
+}
+
.add-order-message form textarea {
+ padding: 10px;
+ font-size: 14px;
border-radius: 4px;
border: 1px solid #E5E5E5;
background: #FFF;
}
+.add-order-message form #submitMessage {
+ padding: 6px 20px;
+}
+
+.add-order-message form #submitMessage span {
+ font-size: 14px;
+ font-weight: bold;
+}
+
.fancybox-overlay {
background: rgba(0, 0, 0, 0.8) !important;
}
@@ -465,7 +551,7 @@
}
#sendOrderMessage {
- margin-bottom: 30px;
+ margin-bottom: 10px;
}
#sendOrderMessage select.form-control {
@@ -507,7 +593,7 @@
.booking-actions-wrap .btn {
font-size: 14px;
- padding: 8px 20px;
+ padding: 11px 20px;
font-weight: bold;
text-align: center;
margin-left: 10px;
diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl
index 69a84ea52..23635cf24 100644
--- a/themes/hotel-reservation-theme/order-detail.tpl
+++ b/themes/hotel-reservation-theme/order-detail.tpl
@@ -66,38 +66,41 @@
{l s='Hotel Details'}