Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Responsive design issue in front office search block #1263

Merged
merged 4 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions modules/wkroomsearchblock/views/css/wk-category-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@
.header-rmsearch-wrapper #search_hotel_block_form #daterange_value.multi-date {
grid-template-columns: 1fr;
}
#search_hotel_block_form .header-rmsearch-input {
height: unset;
min-height: 45px;
}
#search_hotel_block_form #search_room_submit {
height: unset;
min-height: 45px;
}
#search_hotel_block_form .hotel-selector-wrap .chosen-container-single .chosen-single {
min-height: 45px;
}
Expand Down
9 changes: 4 additions & 5 deletions modules/wkroomsearchblock/views/css/wk-global-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,17 @@
font-weight: 400;
border: 1px solid #555555;
background-color: #FFF;
height: 100%;
min-height: 55px;}
#search_hotel_block_form .header-rmsearch-input:active, #search_hotel_block_form .header-rmsearch-input:focus {
border: 2px solid #1292FF;}
#search_hotel_block_form #id_hotel_button {
appearance: none;
width: 100%;
padding-left: 35px;
padding-right: 20px;
background: url("../../views/img/icon-hotel.svg") no-repeat 10px 50%, url("../../views/img/icon-dropdown-arrow.svg") no-repeat calc(100% - 10px) 50%;
background-color: #FFF;}
#search_hotel_block_form #guest_occupancy {
height: unset;
text-align: unset;
}
#search_hotel_block_form .input-date {
display: grid;
cursor: text;}
Expand Down Expand Up @@ -181,7 +179,8 @@
font-size: 13px;
text-transform: uppercase;
border: none;
border-radius: 4px;}
border-radius: 4px;
min-height: 55px;}
.submit_occupancy_btn {
background-color: #1292FF;
border: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
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;
} */
5 changes: 1 addition & 4 deletions modules/wkroomsearchblock/views/css/wk-roomtype-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@
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;
Expand Down
16 changes: 16 additions & 0 deletions modules/wkroomsearchblock/views/js/wk-room-search-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,14 @@ $(document).ready(function() {
}
},
endDate: max_order_date,
customOpenAnimation: function(cb)
{
$(this).show(10, cb);
},
customCloseAnimation: function(cb)
{
$(this).hide(10, cb);
}
}).on('datepicker-first-date-selected', function() {
calendarFirstDateSelected = true;
}).on('datepicker-change', function(event,obj){
Expand Down Expand Up @@ -488,6 +496,14 @@ $(document).ready(function() {
$('#daterange_value').dateRangePicker({
startDate: start_date,
endDate: max_order_date,
customOpenAnimation: function(cb)
{
$(this).show(10, cb);
},
customCloseAnimation: function(cb)
{
$(this).hide(10, cb);
}
}).on('datepicker-first-date-selected', function() {
calendarFirstDateSelected = true;
}).on('datepicker-change', function(event,obj){
Expand Down
4 changes: 2 additions & 2 deletions modules/wkroomsearchblock/views/templates/hook/searchForm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
{block name='search_form_location'}
{if isset($location_enabled) && $location_enabled}
<div class="form-group grid-item area-4">
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="dropdown">
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
<ul class="location_search_results_ul dropdown-menu"></ul>
</div>
</div>
Expand Down