updated order detail page design

This commit is contained in:
Shreesh Arora
2024-03-27 10:30:32 +05:30
parent 1ed9d99647
commit 95acf2b485
2 changed files with 110 additions and 79 deletions

View File

@@ -260,6 +260,10 @@
padding: 0;
}
.room-details .card-body .no-rooms {
padding: 18px;
}
.room-details .booking-room-detail {
padding: 18px;
position: relative;
@@ -401,8 +405,8 @@
.fancybox-wrap.fancybox-order-detail .fancybox-close {
background: none;
top: 8px;
right: 10px;
top: 12px;
right: 12px;
font-size: 32px;
}
@@ -472,7 +476,7 @@
}
.fancybox-wrap.fancybox-order-detail .card-footer {
padding: 10px 15px;
padding: 10px 18px;
border-top: 1px solid #E5E5E5;
}
@@ -800,11 +804,6 @@
padding-left: 0;
}
#create-new-refund-popup .tab-content {
margin-top: 0;
border-left: 1px solid #E5E5E5;
}
/* nav-tabs resets - start */
#create-new-refund-popup .nav-tabs,
#create-new-refund-popup .nav-tabs > li,
@@ -819,13 +818,22 @@
/* nav-tabs resets - end */
/* nav-tabs custom - start */
#create-new-refund-popup .nav-tabs {
border-right: 1px solid #E5E5E5;
margin-right: -1px;
}
#create-new-refund-popup .nav-tabs > li > a {
color: #333;
padding: 10px 18px;
padding: 10px 18px !important;
margin-right: -1px;
border-bottom: 1px solid #E5E5E5;
}
#create-new-refund-popup .nav-tabs > li:last-of-type {
margin-bottom: -1px;
}
#create-new-refund-popup .nav-tabs > li:last-of-type:first-of-type > a {
border-bottom: 1px solid #E5E5E5;
}
@@ -833,6 +841,11 @@
#create-new-refund-popup .nav-tabs li.active a {
border-right: none;
}
#create-new-refund-popup .tab-content {
margin-top: 0;
border-left: 1px solid #E5E5E5;
}
/* nav-tabs custom - end */
#create-new-refund-popup .nav-tabs li.active a::after {
@@ -921,7 +934,7 @@
}
#create-new-refund-popup .card.cancel-booking-preview .card-body {
padding: 15px;
padding: 18px;
}
#create-new-refund-popup .card.cancel-booking-preview .well {
@@ -1080,11 +1093,6 @@
.transform-account .form-group input {
max-width: 350px;
width: 350px;
padding: 20px 10px;
border: 1px solid #E5E5E5;
border-radius: 4px;
box-shadow: none;
}
.transform-account .btn-submit {

View File

@@ -68,25 +68,29 @@
{l s='Hotel Details'}
</div>
<div class="card-body">
<div class="description-list">
<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>
</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>
{hook h='displayOrderDetailHotelDetailsAfter' id_order=$order->id}
</div>
</dl>
</div>
{if Validate::isLoadedObject($obj_hotel_branch_information)}
<div class="description-list">
<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>
</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>
{hook h='displayOrderDetailHotelDetailsAfter' id_order=$order->id}
</div>
</dl>
</div>
{else}
<div class="card-text">{l s='Hotel details not available.'}</div>
{/if}
</div>
</div>
@@ -135,13 +139,17 @@
{l s='Address'}
</p>
<p class="hotel-address">
{$hotel_address_info['address1']},
{if {$hotel_address_info['address2']}}{$hotel_address_info['address2']},{/if}
{$hotel_address_info['city']},
{if {$hotel_address_info['state']}}{$hotel_address_info['state']},{/if}
{$hotel_address_info['country']}, {$hotel_address_info['postcode']}
</p>
{if isset($hotel_address_info) && $hotel_address_info}
<p class="hotel-address">
{$hotel_address_info['address1']},
{if {$hotel_address_info['address2']}}{$hotel_address_info['address2']},{/if}
{$hotel_address_info['city']},
{if {$hotel_address_info['state']}}{$hotel_address_info['state']},{/if}
{$hotel_address_info['country']}, {$hotel_address_info['postcode']}
</p>
{else}
<div class="card-text">{l s='Hotel location not available.'}</div>
{/if}
{if ($obj_hotel_branch_information->latitude|floatval != 0 && $obj_hotel_branch_information->longitude|floatval != 0)}
<div class="hotel-location-map">
@@ -185,18 +193,19 @@
</div>
</div>
<div class="card-body">
<div class="rooms-list">
{if isset($cart_htl_data) && $cart_htl_data}
{if isset($cart_htl_data) && $cart_htl_data}
<div class="rooms-list">
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
{include file='./_partials/order-room-detail.tpl'}
{/foreach}
{/foreach}
{else}
{l s='No rooms found.'}
{/if}
{hook h='displayOrderDetailRoomDetailsRoomAfter' id_order=$order->id}
</div>
{hook h='displayOrderDetailRoomDetailsRoomsAfter' id_order=$order->id}
</div>
{else}
<div class="no-rooms card-text">{l s='Room details not available.'}</div>
{/if}
</div>
</div>
@@ -320,24 +329,29 @@
</tr>
{/if}
{else}
{if isset($address_invoice->firstname) && $address_invoice->firstname}
<tr>
<td>{l s='Name'}</td>
<td class="text-right">{$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'}</td>
</tr>
{/if}
{if isset($guestInformations['email']) && $guestInformations['email']}
<tr>
<td>{l s='Email'}</td>
<td class="text-right">{$guestInformations['email']|escape:'html':'UTF-8'}</td>
</tr>
{/if}
<tr>
<td>{l s='Name'}</td>
<td class="text-right">
{if isset($address_invoice->firstname) && $address_invoice->firstname}
{$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'}
{elseif isset($guestInformations['firstname']) && $guestInformations['firstname']}
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
{/if}
</td>
</tr>
<tr>
<td>{l s='Email'}</td>
<td class="text-right">{$guestInformations['email']|escape:'html':'UTF-8'}</td>
</tr>
{if isset($address_invoice->phone_mobile) && $address_invoice->phone_mobile}
<tr>
<td>{l s='Mobile'}</td>
<td class="text-right">{$address_invoice->phone_mobile|escape:'html':'UTF-8'}</td>
</tr>
{/if}
{if isset($address_invoice->phone) && $address_invoice->phone}
<tr>
<td>{l s='Phone'}</td>
@@ -508,13 +522,17 @@
{l s='Address'}
</p>
<p class="hotel-address">
{$hotel_address_info['address1']},
{if {$hotel_address_info['address2']}}{$hotel_address_info['address2']},{/if}
{$hotel_address_info['city']},
{if {$hotel_address_info['state']}}{$hotel_address_info['state']},{/if}
{$hotel_address_info['country']}, {$hotel_address_info['postcode']}
</p>
{if isset($hotel_address_info) && $hotel_address_info}
<p class="hotel-address">
{$hotel_address_info['address1']},
{if {$hotel_address_info['address2']}}{$hotel_address_info['address2']},{/if}
{$hotel_address_info['city']},
{if {$hotel_address_info['state']}}{$hotel_address_info['state']},{/if}
{$hotel_address_info['country']}, {$hotel_address_info['postcode']}
</p>
{else}
<div class="card-text">{l s='Hotel location not available.'}</div>
{/if}
{if ($obj_hotel_branch_information->latitude|floatval != 0 && $obj_hotel_branch_information->longitude|floatval != 0)}
<div class="hotel-location-map">
@@ -646,24 +664,29 @@
</tr>
{/if}
{else}
{if isset($address_invoice->firstname) && $address_invoice->firstname}
<tr>
<td>{l s='Name'}</td>
<td class="text-right">{$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'}</td>
</tr>
{/if}
{if isset($guestInformations['email']) && $guestInformations['email']}
<tr>
<td>{l s='Email'}</td>
<td class="text-right">{$guestInformations['email']|escape:'html':'UTF-8'}</td>
</tr>
{/if}
<tr>
<td>{l s='Name'}</td>
<td class="text-right">
{if isset($address_invoice->firstname) && $address_invoice->firstname}
{$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'}
{elseif isset($guestInformations['firstname']) && $guestInformations['firstname']}
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
{/if}
</td>
</tr>
<tr>
<td>{l s='Email'}</td>
<td class="text-right">{$guestInformations['email']|escape:'html':'UTF-8'}</td>
</tr>
{if isset($address_invoice->phone_mobile) && $address_invoice->phone_mobile}
<tr>
<td>{l s='Mobile'}</td>
<td class="text-right">{$address_invoice->phone_mobile|escape:'html':'UTF-8'}</td>
</tr>
{/if}
{if isset($address_invoice->phone) && $address_invoice->phone}
<tr>
<td>{l s='Phone'}</td>