Sha256: 1f22614f3122805077b2b9a461595b10b69ec612d025eb556ccf927fb2c90978
Contents?: true
Size: 843 Bytes
Versions: 23
Compression:
Stored size: 843 Bytes
Contents
<div class="toolbar" style="margin-bottom:5px"> <% if current_user.can?("create","Model#{resource_class.to_s}") %> <%= link_to "+ Add #{resource_class.to_s}", new_resource_url, :class => "awesome large green floatRight" %> <% end %> <% if resource_class.respond_to?("find_with_index") %> <%= form_for "", collection_path, :html=> { :style => "float:right;", :method => :get} do |f| %> <%= link_to "Search", "#", :class => "awesome large light floatRight", :style => "margin-right:5px", :onclick => "$('#search').submit()" %> <% params.each do |name,value| -%> <% next if ["controller","action"].index(name) %> <%= hidden_field_tag name, value %> <% end -%> <%= f.text_field :s, :id => :s, :name => "s", :value => params[:s] %> <% end %> <% end %> <%= will_paginate(collection) %> </div>
Version data entries
23 entries across 23 versions & 1 rubygems