<h3><%= l(:label_easy_page_tab_settings) %></h3>

<%= form_tag save_settings_easy_page_template_tabs_path(id: @tab, template_id: @template), class: 'tab-controls__form tabular' do %>
  <table class="filters-table tab-controls__filters-table">
    <tbody>
      <tr>
        <td><label><%= l(:label_filter_add) %></label></td>
        <td>
          <%= select_tag 'f', options_for_select(available_filters_types.map{|t, o| [o[:name], t]}), onchange: 'EASY.pageTab.addFilter(this.value)', include_blank: true, class: 'tab-controls__select-type' %>
        </td>
      </tr>
      <tr>
        <td></td>
        <td>
          <%= link_to_function l(:button_save), 'EASY.pageTab.save()', class: 'icon icon-checked apply-link button-positive' %>
          <%= link_to_function l(:button_cancel), 'location.reload()' %>
        </td>
      </tr>
    </tbody>
  </table>
<% end %>
