Sha256: 794e1ead9b1292c7f553f2edb4fbea3ccf4471a91a1401c82e47e9b4ce8ef8ea

Contents?: true

Size: 1.79 KB

Versions: 9

Compression:

Stored size: 1.79 KB

Contents

= field_set_tag( t(:"search.title", :default => "Search", :scope => Fancygrid.i18n_scope), :class => :"fg-search" ) do
  %ul.fg-search-controls
    %li.fg-button-refresh{ :title => t(:"search.add_criterion",  :default => "Add criterion", :scope => Fancygrid.i18n_scope) }
    %li.fg-button-refresh{ :title => t(:"actions.reload",        :default => "Reload",        :scope => Fancygrid.i18n_scope) }
    %li.fg-button-clear{   :title => t(:"actions.reset",         :default => "Reset",         :scope => Fancygrid.i18n_scope) }
    %li
      = check_box_tag(:"fg-search-conditions", :all, fancygrid.view_state.conditions_match_all?)
      = label_tag(:"fg-search-conditions", t(:"search.conditions", :default => 'All conditions must met:', :scope => Fancygrid.i18n_scope))
      
  %ul.fg-search-criteria
    - fancygrid.visible_columns.each do |column|
      - fancygrid.view_state.column_conditions(column).each do |condition|
        %li.fg-search-criterion
          .fg-button-remove-criterion{ :title => t(:"search.remove_criterion",  :default => "Remove criterion", :scope => Fancygrid.i18n_scope) }
          = select_tag(:identifier, options_for_select(fancygrid.select_column_options, condition[:identifier]))
          = select_tag(:operator, options_for_select(fancygrid.select_operator_options, condition[:operator] || fancygrid.search_operator))
          = text_field_tag(:value, condition[:value])
      
.fg-search-template
  %li.fg-search-criterion
    .fg-button-remove-criterion{ :title => t(:"search.remove_criterion",  :default => "Remove criterion", :scope => Fancygrid.i18n_scope) }
    = select_tag(:identifier, options_for_select(fancygrid.select_column_options))
    = select_tag(:operator, options_for_select(fancygrid.select_operator_options, fancygrid.search_operator))
    = text_field_tag(:value)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fancygrid-2.0.8 app/views/fancygrid/search.html.haml
fancygrid-2.0.7 app/views/fancygrid/search.html.haml
fancygrid-2.0.6 app/views/fancygrid/search.html.haml
fancygrid-2.0.5 app/views/fancygrid/search.html.haml
fancygrid-2.0.4 app/views/fancygrid/search.html.haml
fancygrid-2.0.3 app/views/fancygrid/search.html.haml
fancygrid-2.0.2 app/views/fancygrid/search.html.haml
fancygrid-2.0.1 app/views/fancygrid/search.html.haml
fancygrid-2.0.0 app/views/fancygrid/search.html.haml