Sha256: 6804f26e59b875ea30dfe6bcc6c9e35ad9e37b273add96f4d1d51ef55fc36b4e
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
= search_form_for term, url: admin_assets_path, class: 'search', id: 'filesearchform' do |f| - if page = hidden_field_tag "page_id", page.id = hidden_field_tag "p", params['p'] || 1 = hidden_field_tag "pp", params['pp'] || 50 .asset_filters = link_to t("asset_types.all"), admin_assets_url, :id => "select_all", :class => params[:filter].blank? ? "deselective pressed" : "deselective" - AssetType.all.each do |type| - unless type.name == :other = link_to t("asset_types.#{type.plural}"), admin_assets_url(:filter => type.name), :rel => type.name.to_s, :class => params[:filter] == type.name.to_s ? "selective pressed" : "selective" .asset_search %i.fas.fa-search = f.search_field :title_cont, placeholder: 'Search Asset Title', class: 'search', id: 'filesearchforminput', size: '30' Sort By #{sort_link(term, :title)} or #{sort_link(term, :created_at)} #type_boxes{:style => "display: none"} - AssetType.all.each do |type| = check_box_tag 'filter[]', type.name.to_s, false, :id => "#{type.name}-check", :class => 'selective'
Version data entries
10 entries across 10 versions & 1 rubygems