Добрый день ув. пользователи ! Использую модуль views. В отдельном блоке есть поиск по моделям с кнопкой apply и поиск по ценам с кнопкой go. Подскажие пожалуйста как этот поисковый блок повесить просто на одну кнопку apply.
<?php
<form action="/auto?q=cars" method="get" id="views-exposed-form-all-cars-page" accept-charset="UTF-8"><div> <input type="hidden" name="q" value="cars">
<div class="views-exposed-form">
<div class="views-exposed-widgets clearfix">
<div id="edit-search-api-views-fulltext-wrapper" class="views-exposed-widget views-widget-filter-search_api_views_fulltext">
<label for="edit-search-api-views-fulltext">
Brand Cars </label>
<div class="views-widget">
<div class="form-item form-type-textfield form-item-search-api-views-fulltext">
<input type="text" id="edit-search-api-views-fulltext" name="search_api_views_fulltext" value="" size="30" maxlength="128" class="form-text">
</div>
</div>
</div>
<div id="edit-search-api-views-fulltext-1-wrapper" class="views-exposed-widget views-widget-filter-search_api_views_fulltext_1">
<label for="edit-search-api-views-fulltext-1">
Model </label>
<div class="views-widget">
<div class="form-item form-type-textfield form-item-search-api-views-fulltext-1">
<input type="text" id="edit-search-api-views-fulltext-1" name="search_api_views_fulltext_1" value="" size="30" maxlength="128" class="form-text">
</div>
</div>
</div>
<div class="views-exposed-widget views-submit-button">
<input type="submit" id="edit-submit-all-cars" name="" value="Apply" class="form-submit"> </div>
</div>
</div>
</div></form>
<
div class="search-api-ranges-widget">
<form action="/auto_dealer/?q=cars" method="post" id="search-api-ranges-block-slider-view-form-field-prise-house" accept-charset="UTF-8"><div><p class="text-range">Brand Cars ranges from 1,000 to 200,000</p><div class="yui3-g">
<div class="yui3-u range-box range-box-left">
<div class="form-item form-type-textfield form-item-range-from">
<label for="edit-range-from">From </label>
<input type="text" id="edit-range-from" name="range-from" value="1000" size="10" maxlength="128" class="form-text">
</div>
</div>
<div class="yui3-u range-slider-box">
<div class="range-slider ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" aria-disabled="false">
<div class="ui-slider-range ui-widget-header ui-corner-all" style="left: 0%; width: 100%;"></div>
<a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 0%;"></a>
<a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 100%;"></a>
<div class="ui-slider-range ui-widget-header ui-corner-all" style="left: 0%; width: 100%;"></div>
</div>
</div>
<div class="yui3-u range-box range-box-right">
<div class="form-item form-type-textfield form-item-range-to">
<label for="edit-range-to">To </label>
<input type="text" id="edit-range-to" name="range-to" value="200000" size="10" maxlength="128" class="form-text">
</div>
</div>
</div>
<input type="submit" id="edit-submit--2" name="op" value="Go" class="form-submit"><input type="hidden" name="range-min" value="1000">
<input type="hidden" name="range-max" value="200000">
<input type="hidden" name="path" value="cars">
<input type="hidden" name="range-field" value="field_prise_house">
<input type="hidden" name="delay" value="1500">
<input type="hidden" name="form_build_id" value="form-iHdQ8OF-N9PNCl8LeWu_XOy3gjy3qlhSrA0sLYQyPEw">
<input type="hidden" name="form_token" value="1lzvr96RBeg21lt1omRdqOIoBXjyJ1OvFyRbosbNs9s">
<input type="hidden" name="form_id" value="search_api_ranges_block_slider_view_form_field_prise_house">
</div></form></div>
?>
Комментарии
1. ajax включить в вьюс блоке. И/или https://www.drupal.org/project/better_exposed_filters
2. jquery
вам нужен модуль Better Exposed Filter. там есть эта функция