%= stylesheet_link_tag("will_filter/filter") -%> <% if results.size > 0 %>
<%= paginate(results) %> | Showing <%= results.offset_value + 1 %> - <%= results.offset_value + results.length %> of <%= results.total_count %> |
<% if sortable %>
<%= link_to "", filter.to_params(:wf_order => sort_key, :wf_order_type => 'asc'), :title => "sort by #{sort_key} ascending", :class => 'up' %>
<%= link_to "", filter.to_params(:wf_order => sort_key, :wf_order_type => 'desc'), :title => "sort by #{sort_key} descending", :class => 'down' %>
<%= column_title %>
<% elsif cmeta[:key] == :checkbox %>
<%= check_box_tag("wf_check_all", "", false, :onClick => "wfCheckAll(this)") %>
<% else %>
<%= column_title %>
<% end %>
|
<% end %>
---|
<% if cmeta[:filterable] %>
<%=link_to(image_tag("will_filter/filter.png", :style=>"width:12px;"), results.add_filter_condition(cmeta[:key], :is, filter_value.to_s).to_params, {:title => "Show only #{filter_value}"}) %>
<% end -%>
<% if cmeta[:key] == :checkbox %>
<%= check_box_tag("#{value}[]", obj.id, false, :id => "wf_check_#{index}", :onClick => "wfVerifyTrigger(this)") %>
<% elsif value.is_a?(Hash) %>
<% value.each do |key, value| %>
<%=key%>: <%= value %>;
<% end -%>
<% elsif value.is_a?(Time) %>
<%= value.strftime("%m/%d/%Y %l:%M:%S") %>
<% elsif value.is_a?(Date) %>
<%= value.strftime("%m/%d/%Y") %>
<% else %>
<%= value.to_s %>
<% end -%>
|
<% end -%>
No results found |