app/views/fancygrid/table.html.haml in fancygrid-2.0.6 vs app/views/fancygrid/table.html.haml in fancygrid-2.0.7
- old
+ new
@@ -10,13 +10,14 @@
- fancygrid.visible_columns.each do |column|
%td{ :class => column.tag_class }
- next unless column.searchable
.fg-search-criterion
= hidden_field_tag(:identifier, column.identifier)
- = hidden_field_tag(:operator, fancygrid.search_operator)
- if column.search_options
+ = hidden_field_tag(:operator, :starts_with)
= select_tag(:value, options_from_collection_for_select(column.search_options, :last, :first), :selected => column.search_value)
- else
+ = hidden_field_tag(:operator, fancygrid.search_operator)
= text_field_tag(:value, column.search_value)
- count = 1
- fancygrid.records.each do |record|
- count = 1 - count