update search panel
This commit is contained in:
@@ -218,56 +218,48 @@ class WkRoomSearchHelper
|
||||
'location' => 4,
|
||||
'hotel' => 5,
|
||||
'date' => 5,
|
||||
'occupancy' => 5,
|
||||
'search' => 3
|
||||
'occupancy' => 4,
|
||||
'search' => 4
|
||||
);
|
||||
|
||||
if (!$locationEnabled) {
|
||||
unset($search_column_widths['location']);
|
||||
|
||||
$search_column_widths['date'] += 1;
|
||||
$search_column_widths['date'] += 2;
|
||||
$search_column_widths['search'] += 1;
|
||||
if ($occupancyEnabled) {
|
||||
$search_column_widths['search'] += 1;
|
||||
$search_column_widths['occupancy'] += 1;
|
||||
} elseif ($smartyVars['show_hotel_name'] || count($hotelsInfo) > 1) {
|
||||
$search_column_widths['hotel'] += 1;
|
||||
} else {
|
||||
$search_column_widths['search'] += 1;
|
||||
$search_column_widths['date'] += 1;
|
||||
}
|
||||
}
|
||||
if (!$smartyVars['show_hotel_name'] && count($hotelsInfo) <= 1) {
|
||||
unset($search_column_widths['hotel']);
|
||||
|
||||
$search_column_widths['date'] += 1;
|
||||
$search_column_widths['date'] += 2;
|
||||
$search_column_widths['search'] += 1;
|
||||
if ($occupancyEnabled) {
|
||||
$search_column_widths['date'] += 1;
|
||||
$search_column_widths['occupancy'] += 2;
|
||||
} else {
|
||||
$search_column_widths['date'] += 1;
|
||||
$search_column_widths['date'] += 2;
|
||||
}
|
||||
}
|
||||
if (!$occupancyEnabled) {
|
||||
unset($search_column_widths['occupancy']);
|
||||
|
||||
$search_column_widths['date'] += 1;
|
||||
if ($smartyVars['show_hotel_name'] || count($hotelsInfo) > 1) {
|
||||
$search_column_widths['hotel'] += 1;
|
||||
$search_column_widths['date'] += 1;
|
||||
if ($locationEnabled) {
|
||||
$search_column_widths['hotel'] += 1;
|
||||
$search_column_widths['location'] += 1;
|
||||
$search_column_widths['search'] += 2;
|
||||
$search_column_widths['date'] += 1;
|
||||
} else {
|
||||
$search_column_widths['hotel'] += 2;
|
||||
$search_column_widths['search'] += 2;
|
||||
$search_column_widths['date'] += 2;
|
||||
|
||||
$search_column_widths['date'] += 1;
|
||||
}
|
||||
} else {
|
||||
$search_column_widths['date'] += 1;
|
||||
$search_column_widths['date'] += 4;
|
||||
$search_column_widths['date'] += 3;
|
||||
}
|
||||
}
|
||||
$smartyVars['column_widths'] = $search_column_widths;
|
||||
|
||||
@@ -44,6 +44,10 @@
|
||||
height: unset;
|
||||
min-height: 45px;
|
||||
}
|
||||
#search_hotel_block_form #search_room_submit {
|
||||
height: unset;
|
||||
min-height: 45px;
|
||||
}
|
||||
/* #search_hotel_block_form #search_room_submit {
|
||||
height: 45px;
|
||||
} */
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;}
|
||||
|
||||
.header-rmsearch-hide-xs {
|
||||
background-image: url("../img/black-opacity-5.png");}
|
||||
.header-rmsearch-show-xs {
|
||||
@@ -50,7 +51,16 @@
|
||||
#make_booking_btn_div {
|
||||
margin-top: 20px;
|
||||
text-align: center;}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.header-rmsearch-wrapper #search_hotel_block_form.grid {
|
||||
grid-template-columns: 1fr;
|
||||
column-gap: 0px;
|
||||
}
|
||||
.header-rmsearch-wrapper {
|
||||
height: calc(100vw - 60px);
|
||||
width: calc(100vw - 60px);
|
||||
}
|
||||
}
|
||||
.fancy_search_header_xs {
|
||||
margin-top: 25px;
|
||||
padding-left: 15px;
|
||||
@@ -62,6 +72,10 @@
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
width: 125px;}
|
||||
#search_hotel_block_form #search_room_submit {
|
||||
height: unset;
|
||||
min-height: 45px;
|
||||
}
|
||||
/* .fancybox-inner #search_hotel_block_form {
|
||||
grid-template-columns: 1fr;
|
||||
} */
|
||||
@@ -64,6 +64,19 @@
|
||||
background-color: #FAFAFA;}
|
||||
.faded-txt {
|
||||
color: #777777;}
|
||||
#search_hotel_block_form #search_room_submit {
|
||||
height: unset;
|
||||
min-height: 45px;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.header-rmsearch-wrapper #search_hotel_block_form.grid {
|
||||
grid-template-columns: 1fr;
|
||||
column-gap: 0px;
|
||||
}
|
||||
.header-rmsearch-details-wrapper .modify_roomtype_search_btn {
|
||||
padding: 6px 12px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
.header-rmsearch-wrapper .close_room_serach_wrapper {
|
||||
top: -8px;
|
||||
|
||||
@@ -42,7 +42,9 @@ $(document).ready(function() {
|
||||
padding: 0,
|
||||
autoScale: false,
|
||||
maxWidth: '100%',
|
||||
'hideOnContentClick': false,
|
||||
helpers: {
|
||||
overlay: { closeClick: false } //Disable click outside event
|
||||
},
|
||||
'afterClose': function() {
|
||||
$('.header-rmsearch-container').show();
|
||||
$('#xs_room_search_form').show();
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
<div class="col-sm-9 form-group">
|
||||
<div class="filter_header row">
|
||||
<div class="col-sm-12">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}:</p>
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}:
|
||||
<button class="btn btn-default visible-xs modify_roomtype_search_btn pull-right"><i class="icon-pencil"></i></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -35,7 +37,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 form-group">
|
||||
<div class="col-sm-3 form-group hidden-xs">
|
||||
<button class="btn btn-default modify_roomtype_search_btn pull-right">{l s='Modify Search' mod='wkroomsearchblock'}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group search_room_submit_block area-{$column_widths['search']}">
|
||||
<button type="submit" class="btn btn btn-lg btn-primary pull-right" name="search_room_submit" id="search_room_submit">
|
||||
<button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
|
||||
<span>{l s='Search Rooms' mod='wkroomsearchblock'}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user