From 95acf2b485c0893b28d0ea29f2e312f39de19220 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Wed, 27 Mar 2024 10:30:32 +0530 Subject: [PATCH] updated order detail page design --- .../css/order-detail.css | 38 +++-- .../hotel-reservation-theme/order-detail.tpl | 151 ++++++++++-------- 2 files changed, 110 insertions(+), 79 deletions(-) diff --git a/themes/hotel-reservation-theme/css/order-detail.css b/themes/hotel-reservation-theme/css/order-detail.css index f32a54020..c128914d9 100644 --- a/themes/hotel-reservation-theme/css/order-detail.css +++ b/themes/hotel-reservation-theme/css/order-detail.css @@ -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 { diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index 82e62c2c7..b265ab018 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -68,25 +68,29 @@ {l s='Hotel Details'}
-
-
-
-
{l s='Hotel Name'}
-
{$obj_hotel_branch_information->hotel_name}
-
{l s='Phone Number'}
-
- - {if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if} - -
-
{l s='Email'}
-
- -
- {hook h='displayOrderDetailHotelDetailsAfter' id_order=$order->id} -
-
-
+ {if Validate::isLoadedObject($obj_hotel_branch_information)} +
+
+
+
{l s='Hotel Name'}
+
{$obj_hotel_branch_information->hotel_name}
+
{l s='Phone Number'}
+
+ + {if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if} + +
+
{l s='Email'}
+
+ +
+ {hook h='displayOrderDetailHotelDetailsAfter' id_order=$order->id} +
+
+
+ {else} +
{l s='Hotel details not available.'}
+ {/if}
@@ -135,13 +139,17 @@ {l s='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']} -

+ {if isset($hotel_address_info) && $hotel_address_info} +

+ {$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']} +

+ {else} +
{l s='Hotel location not available.'}
+ {/if} {if ($obj_hotel_branch_information->latitude|floatval != 0 && $obj_hotel_branch_information->longitude|floatval != 0)}
@@ -185,18 +193,19 @@
-
- {if isset($cart_htl_data) && $cart_htl_data} + {if isset($cart_htl_data) && $cart_htl_data} +
{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} -
+ + {hook h='displayOrderDetailRoomDetailsRoomsAfter' id_order=$order->id} +
+ {else} +
{l s='Room details not available.'}
+ {/if}
@@ -320,24 +329,29 @@ {/if} {else} - {if isset($address_invoice->firstname) && $address_invoice->firstname} - - {l s='Name'} - {$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'} - - {/if} - {if isset($guestInformations['email']) && $guestInformations['email']} - - {l s='Email'} - {$guestInformations['email']|escape:'html':'UTF-8'} - - {/if} + + {l s='Name'} + + {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} + + + + + {l s='Email'} + {$guestInformations['email']|escape:'html':'UTF-8'} + + {if isset($address_invoice->phone_mobile) && $address_invoice->phone_mobile} {l s='Mobile'} {$address_invoice->phone_mobile|escape:'html':'UTF-8'} {/if} + {if isset($address_invoice->phone) && $address_invoice->phone} {l s='Phone'} @@ -508,13 +522,17 @@ {l s='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']} -

+ {if isset($hotel_address_info) && $hotel_address_info} +

+ {$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']} +

+ {else} +
{l s='Hotel location not available.'}
+ {/if} {if ($obj_hotel_branch_information->latitude|floatval != 0 && $obj_hotel_branch_information->longitude|floatval != 0)}
@@ -646,24 +664,29 @@ {/if} {else} - {if isset($address_invoice->firstname) && $address_invoice->firstname} - - {l s='Name'} - {$address_invoice->firstname|escape:'html':'UTF-8'} {$address_invoice->lastname|escape:'html':'UTF-8'} - - {/if} - {if isset($guestInformations['email']) && $guestInformations['email']} - - {l s='Email'} - {$guestInformations['email']|escape:'html':'UTF-8'} - - {/if} + + {l s='Name'} + + {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} + + + + + {l s='Email'} + {$guestInformations['email']|escape:'html':'UTF-8'} + + {if isset($address_invoice->phone_mobile) && $address_invoice->phone_mobile} {l s='Mobile'} {$address_invoice->phone_mobile|escape:'html':'UTF-8'} {/if} + {if isset($address_invoice->phone) && $address_invoice->phone} {l s='Phone'}