Sha256: 539509cf84c35780569e93e40f9a52c63e58ae1cb87ec6ec1596dbf035bd6078

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

<%# locals => reportable, optional => pivot %>

<% pivot = nil if !local_assigns.has_key?(:pivot) %>

<% if reportable.instance_of?(Mg::Goal) %>
	<% gmts = reportable.mg_goal_meta_types %>
<% end %>

<% if !gmts.nil? %>
	<div class="item pivot">
		<%= label_tag :'report_item[pivot]', "Pivot" %>
		<%= select_tag :'report_item[pivot]', options_for_select( [[ "None", "" ]] + gmts.map { |gmt| [ gmt.name, "#{gmt.id}-#{gmt.class}" ] }, pivot.nil? ? "" : "#{pivot.id}-#{pivot.type}" ) %>
	</div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mountain-goat-1.0.6pre1 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb
mountain-goat-1.0.5 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb
mountain-goat-1.0.4 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb
mountain-goat-1.0.3 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb
mountain-goat-1.0.2 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb
mountain-goat-1.0.1 lib/mountain-goat/views/mountain_goat/mg/report_items/_report_item_pivot_form.html.erb