Sha256: a75f79247a05d252de17d15d68e07c8a75c64e6caf10ed01abe6d24f0283ab9b
Contents?: true
Size: 657 Bytes
Versions: 5
Compression:
Stored size: 657 Bytes
Contents
<div class="scol one-quarter report-filter"> <div class="srow"> <b><%= filter.param.humanize %></b> </div> <div class="srow"> <% options = case filter.collection.class.name when 'String', 'Symbol' clark_kent_user.send(filter.collection) when 'Array', 'ActiveRecord::Relation' filter.collection end %> <%= select_tag filter.param, options_from_collection_for_select( options, (select_value_method(filter.param,options.first)), (select_text_method(filter.param,options.first)), params[filter.param]), {include_blank: true}.merge((options.length > 25) ? {'data-autocomplete' => true} : {}) %> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems