Sha256: f90c170d02ffab23ec2dd812d17c66c1b9b0ad5de27948c62bf7d039da07b181

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

<div class="ih-span one-quarter">
	<div class="ih-row">
		<%= filter.param.humanize %>
	</div>
	<div class="ih-row">
		<% options = case filter.collection.class.name
			 when 'String', 'Symbol'
			   clark_kent_user.send(filter.collection)
			 when 'Array'
			   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

3 entries across 3 versions & 1 rubygems

Version Path
clark_kent-0.9.9 app/views/clark_kent/reports/_object_filter.html.erb
clark_kent-0.9.8 app/views/clark_kent/reports/_object_filter.html.erb
clark_kent-0.9.7 app/views/clark_kent/reports/_object_filter.html.erb