{## # This file is part of the SgDatatablesBundle package. # # (c) stwe # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. #} {% set filter_select_multiple %} {% if column.filter.multiple is same as(true) %} multiple="multiple" {% endif %} {% endset %} {%- set filter_id_selector -%} sg-datatables-{{ datatable_name }}-{{ position }}-filter-{{ column.index }} {%- endset -%} {%- set filter_selector -%} id="{{ filter_id_selector }}" {%- endset -%} {% set filter_classes %} class="sg-datatables-individual-filtering{% if column.filter.classes is not same as(null) %} {{ column.filter.classes }}{% endif %}" {% endset %} {% set filter_width %} {% if column.width is not same as(null) %}style="width:{{ column.width }};"{% endif %} {% endset %} {% set filter_search_column_index %} data-search-column-index="{{ search_column_index }}" {% endset %} {% set filter_column_name %} {% if column.name is not same as(null) %}name="{{ column.name }}"{% endif %} {% endset %} {% set filter_select_select_options %} {% for key, name in column.filter.selectOptions %} {% if column.filter.initialSearch is not same as(null) and column.filter.initialSearch is same as(key) %} {% else %} {% endif %} {% endfor %} {% endset %} {%- set cancel_button_id_selector -%} sg-datatables-{{ datatable_name }}-{{ position }}-filter-cancel-{{ column.index }} {%- endset -%} {% set cancel_button_html %} {% if column.filter.cancelButton is same as(true) %} {% endif %} {% endset %} {% set cancel_button_js %} {% if column.filter.cancelButton is same as(true) %} {% endif %} {% endset %} {% block html %} {{ cancel_button_html }} {% endblock %} {% block javascript %} {{ cancel_button_js }} {% endblock %}