Sha256: 35ad43533e74d6ea7f6d0beb433ce44d001a22a8f3c359bcc57d3657965cb1e0
Contents?: true
Size: 1009 Bytes
Versions: 25
Compression:
Stored size: 1009 Bytes
Contents
- form_tag(admin_assets_path, :id=>'filesearchform', :method => 'get', :class=>"search") do - if @page = hidden_field_tag "page_id", @page.id = hidden_field_tag "p", params['p'] || 1 = hidden_field_tag "pp", params['pp'] || 20 .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" .right %input{:type=>"search", :class=>"search", :name=>"search", :value=>h(params[:search]), :placeholder=>"Search", :results=>0, :size=>30} #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
25 entries across 25 versions & 3 rubygems