Update design
This commit is contained in:
@@ -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,
|
||||
)
|
||||
);
|
||||
// }
|
||||
|
||||
@@ -22,12 +22,10 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<strong>
|
||||
{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}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -66,38 +66,41 @@
|
||||
{l s='Hotel Details'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p class="card-title">
|
||||
{$obj_hotel_branch_information->hotel_name}
|
||||
</p>
|
||||
|
||||
<div class="description-list">
|
||||
<dl class="row">
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Phone Number'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<a href="tel:{if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if}">
|
||||
{if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if}
|
||||
</a>
|
||||
</dd>
|
||||
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Email'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<a href="mailto:{$obj_hotel_branch_information->email}" class="hotel-email">{$obj_hotel_branch_information->email}</a>
|
||||
</dd>
|
||||
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Payment Method'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
{$order->payment|escape:'html':'UTF-8'}
|
||||
{if $invoice && $invoiceAllowed}
|
||||
<a target="_blank" href="{$link->getPageLink('pdf-invoice', true)}?id_order={$order->id|intval}{if $is_guest}&secure_key={$order->secure_key|escape:'html':'UTF-8'}{/if}" title="{l s='Click here to download invoice.'}">
|
||||
<i class="icon-file-text"></i> {l s='Invoice'}
|
||||
<dl class="">
|
||||
<div class="row">
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Hotel Name'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">{$obj_hotel_branch_information->hotel_name}</dd>
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Phone Number'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<a href="tel:{if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if}">
|
||||
{if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</dd>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Booking Status'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<span{if isset($order_history[0].color) && $order_history[0].color} style="background-color:{$order_history[0].color|escape:'html':'UTF-8'}30; border: 1px solid {$order_history[0].color|escape:'html':'UTF-8'};" {/if} class="label">{$order_history[0].ostate_name|escape:'html':'UTF-8'}</span>
|
||||
</dd>
|
||||
<div class="row">
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Email'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<a href="mailto:{$obj_hotel_branch_information->email}" class="hotel-email">{$obj_hotel_branch_information->email}</a>
|
||||
</dd>
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Payment Method'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
{$order->payment|escape:'html':'UTF-8'}
|
||||
{if $invoice && $invoiceAllowed}
|
||||
<a target="_blank" href="{$link->getPageLink('pdf-invoice', true)}?id_order={$order->id|intval}{if $is_guest}&secure_key={$order->secure_key|escape:'html':'UTF-8'}{/if}" title="{l s='Click here to download invoice.'}">
|
||||
<i class="icon-file-text"></i> {l s='Invoice'}
|
||||
</a>
|
||||
{/if}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<dt class="col-xs-6 col-sm-3">{l s='Booking Status'}</dt>
|
||||
<dd class="col-xs-6 col-sm-3">
|
||||
<span{if isset($order_history[0].color) && $order_history[0].color} style="background-color:{$order_history[0].color|escape:'html':'UTF-8'}30; border: 1px solid {$order_history[0].color|escape:'html':'UTF-8'};" {/if} class="label">{$order_history[0].ostate_name|escape:'html':'UTF-8'}</span>
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
@@ -139,7 +142,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="card room-details">
|
||||
<div class="card room-details card-toolbar">
|
||||
<div class="card-header">
|
||||
{l s='Room Details'}
|
||||
<div class="booking-actions-wrap">
|
||||
@@ -320,13 +323,44 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if isset($obj_hotel_branch_information->policies) && $obj_hotel_branch_information->policies}
|
||||
<div class="card hotel-policies">
|
||||
{assign var=has_general_hotel_policies value=(isset($obj_hotel_branch_information->policies) && $obj_hotel_branch_information->policies)}
|
||||
{assign var=has_refund_hotel_policies value=($obj_hotel_branch_information->isRefundable() && $hotel_refund_rules)}
|
||||
{if $has_general_hotel_policies || $has_refund_hotel_policies}
|
||||
<div class="card hotel-policies card-tabs">
|
||||
<div class="card-header">
|
||||
{l s='Hotel Policies'}
|
||||
<ul class="nav nav-tabs">
|
||||
{if $has_general_hotel_policies}
|
||||
<li class="active">
|
||||
<a href="#tab-hotel-policies-general" data-toggle="tab">{l s='Hotel Policies'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $has_refund_hotel_policies}
|
||||
<li {if !$has_general_hotel_policies}class="active"{/if}>
|
||||
<a href="#tab-hotel-policies-refund" data-toggle="tab">{l s='Refund Policies'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-text">{$obj_hotel_branch_information->policies}</div>
|
||||
<div class="tab-content">
|
||||
{if $has_general_hotel_policies}
|
||||
<div id="tab-hotel-policies-general" class="tab-pane active">
|
||||
<div class="card-text">{$obj_hotel_branch_information->policies}</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $has_refund_hotel_policies}
|
||||
<div id="tab-hotel-policies-refund" class="tab-pane{if !$has_general_hotel_policies}active{/if}">
|
||||
<div class="refund-policies-list">
|
||||
{foreach from=$hotel_refund_rules item=hotel_refund_rule name=foreach_refund_rules}
|
||||
<div class="refund-policy">
|
||||
<p class="refund-rule-name">{l s='%s. ' sprintf=[$smarty.foreach.foreach_refund_rules.iteration]}{$hotel_refund_rule.name|escape:'html':'UTF-8'}</p>
|
||||
<div class="card-text refund-rule-description">{$hotel_refund_rule.description|escape:'html':'UTF-8'}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -377,8 +411,8 @@
|
||||
<input type="hidden" class="id_product" name="id_product" value="0">
|
||||
</div>
|
||||
|
||||
<p class="form-group">
|
||||
<textarea class="form-control" rows="5" name="msgText"></textarea>
|
||||
<p class="form-group textarea">
|
||||
<textarea class="form-control" rows="3" name="msgText"></textarea>
|
||||
</p>
|
||||
|
||||
<div class="submit">
|
||||
|
||||
Reference in New Issue
Block a user