Sha256: 2d6619ff9fc65b0619fc83381e9379f117c633bf79c97a1ef882f28071ed33cd
Contents?: true
Size: 984 Bytes
Versions: 9
Compression:
Stored size: 984 Bytes
Contents
- value = "" if value.nil? - field = presenter.get_field(field) - if presenter.relation_field?(field) - if field.advanced_search_operator == :equal = select_tag "advanced_search[#{field.name}]", options_for_select(presenter.get_association(field.association_name).klass.list_for_select(reverse: true, add_empty_option: true), value), "data-operator" => 'equal' - else = text_field_tag "advanced_search[#{field.name}]", value, "data-operator" => field.advanced_search_operator - else - if presenter.field_type(field.name) == :boolean = select_tag "advanced_search[#{field.name}]", options_for_select([['',''],['true', 'true'],['false', 'false']], value) - elsif presenter.field_type(field.name) == :datetime = text_field_tag "advanced_search[#{field.name}]", value, "data-operator" => field.advanced_search_operator, :class => "datepicker" - else = text_field_tag "advanced_search[#{field.name}]", value, "data-operator" => field.advanced_search_operator
Version data entries
9 entries across 9 versions & 1 rubygems