主题暴露过滤器形成drupal 7

时间:2013-12-23 15:24:03

标签: forms drupal-exposed-filter

我想以自定义表单样式

为主题显示公开的过滤器表单字段

我该怎么做?

我尝试将公开的过滤器表单字段名称放在我的自定义表单中,但没有关于结果的响应。

这是我的代码:

<form action="" method="get" id="views-exposed-form-offers-block" >
    <input type="hidden" id="edit-field-realestate-process-type-value" name="field_realestate_process_type_value" >
    <input type="hidden" id="edit-field-realestate-type-value" name="field_realestate_type_value" >
    <div class="row">
        <div class="col-xs-1 input_margin input_align">
            المدينة
        </div>
        <div class="col-xs-2 input_margin">
            <input type="text" id="edit-field-realestate-city-value" name="field_realestate_city_value" class="form-control input-sm form-text" >
        </div>
        <div class="col-xs-1 input_margin input_align">
            السعر
        </div>
        <div class="col-xs-1 input_margin input_align">
            من
        </div>
        <div class="col-xs-1 input_margin">
            <input type="text" id="edit-field-realestate-price-value" name="field_realestate_price_value" class="form-control input-sm form-text" >
            <!-- <input name="field_realestate_price_value" type="text" class="form-control input-sm" placeholder=""> -->
        </div>
        <div class="col-xs-1 input_margin input_align">
            إلي
        </div>
        <div class="col-xs-1 input_margin">
            <input type="text" id="edit-field-realestate-price-value-1" name="field_realestate_price_value_1" class="form-control input-sm form-text" >
            <!-- <input name="field_realestate_price_value_1" type="text" class="form-control input-sm" placeholder=""> -->
        </div>
    </div>
    <div class="row">
        <div class="col-xs-8 input_margin">
        </div>
        <div class="col-xs-1 input_margin input_align">
            المميزات
        </div>
        <div class="col-xs-2 input_margin">
            <!-- <input type="text" id="edit-field-realestate-features-value" name="field_realestate_features_value" class="form-control input-sm form-text" > -->
            <select id="edit-field-realestate-features-value" name="field_realestate_features_value" class="form-select" data-thmr="thmr_54">
                <option value="All" selected="selected"> الكل </option>
                <option value="مسجد">مسجد</option>
                <option value="جراج">جراج</option>
                <option value="حديقة">حديقة</option>
                <option value="أسفلت">أسفلت</option>
                <option value="كهرباء">كهرباء</option>
                <option value="ماء">ماء</option>
                <option value="غاز">غاز</option>
            </select>
        </div>
        <div class="col-xs-1 input_margin">
            <button type="submit" class="btn btn-warning btn-sm seach_black">
            <span class="glyphicon glyphicon-search"></span> بحث
            </button>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-1 input_margin input_align">
            الحي
        </div>
        <div class="col-xs-2 input_margin">
            <input type="text" id="edit-field-realestate-restrict-value" name="field_realestate_restrict_value" class="form-control input-sm form-text" >
        </div>
        <div class="col-xs-1 input_margin input_align">
            المساحة
        </div>
        <div class="col-xs-1 input_margin input_align">
            من
        </div>
        <div class="col-xs-1 input_margin">
            <input type="text" id="edit-field-realestate-rooms-area-value" name="field_realestate_rooms_area_value" class="form-control input-sm form-text" >
            <!-- <input type="text" class="form-control input-sm" placeholder=""> -->
        </div>
        <div class="col-xs-1 input_margin input_align">
            إلي
        </div>
        <div class="col-xs-1 input_margin">
            <input type="text" id="edit-field-realestate-rooms-area-value-1" name="field_realestate_rooms_area_value_1" class="form-control input-sm form-text" >
            <!-- <input type="text" class="form-control input-sm" placeholder=""> -->
        </div>
    </div>
</form>

1 个答案:

答案 0 :(得分:0)

我找到了解决此问题的方法,您必须知道以下所有必需属性才能显示公开的过滤器:

应该有printeD课程。 “&gt;首先我错过了Drupal所需的打印$ classess;我创建了带有暴露过滤器的视图 - 然后用CSS隐藏它并显示另一个视图(漂亮的外观)来管理暴露的过滤器。