{% load i18n %}
<!-- ko if: $data.search -->
<div class="col-md-4 col-lg-3">
    <select class="resources" data-bind="
        attr: {'data-label': node.label},
        select2Query: {
            select2Config:{
                value: op,
                data:[
                    { text: $root.translations.equals, id: 'eq' },
                    { text: $root.translations.not, id: '!eq' },
                    { text: $root.translations.hasNoValue, id: 'null' },
                    { text: $root.translations.hasAnyValue, id: 'not_null' },
                ]
        }}">
    </select>
</div>
<div class="col-md-8 col-lg-9" data-bind="visible: op() !== 'null' && op() !== 'not_null'">
    <select
        class="form-control library-search" 
        data-bind="
            attr: {'data-label': node.label},
            select2Query: {
                select2Config:{
                    data: options,
                    value: searchValue,
                    allowClear: true,
                    placeholder: $root.translations.selectAnOption,
            }},
        "
    ></select>
</div>
<!-- /ko -->