<%= simple_form_for @query, url: :admin_resources, html: { class: 'form-inline well admin-resource-search', method: :get } do |f| %>
<%= f.input :grades, as: :select, collection: Lcms::Engine::Grades.grades, input_html: { class: 'selectize resource-search-select', multiple: true }, label: t('.grades'), label_method: :humanize, required: false, wrapper_html: { class: 'resource-search-wrap' } %> <%= f.input :resource_standards_standard_id_in, as: :select, collection: Lcms::Engine::Standard.all, input_html: { class: 'selectize resource-search-select', multiple: true }, label: t('.standards'), required: false, wrapper_html: { class: 'resource-search-wrap' } %> <%= f.input :tags_name_in, as: :select, collection: Lcms::Engine::Tag.where_context('tags').select(:id, :name).distinct(:name), input_html: { class: 'selectize resource-search-select', multiple: true }, label: t('.tags'), value_method: :name, required: false, wrapper_html: { class: 'resource-search-wrap' } %>
<%= f.input :slug_eq, label: t('.url_slug'), required: false, wrapper_html: { class: 'resource-search-url-slug' } %>
<%= f.input :resource_type_eq, as: :select, label: Lcms::Engine::Resource.human_attribute_name(:resource_type), required: false, wrapper_html: { class: 'resource-search-type' }, collection: Lcms::Engine::Resource.resource_types %> <%= f.input :title_cont, label: t('.title'), required: false, wrapper_html: { class: 'resource-search-title' } %> <%= f.button :submit, t('ui.search'), class: 'resource-search-button', name: nil %>
<% end %>