Sha256: cee7662cf7bb954889ab2d6e424e620eeb5f25a9c6b460e92e238b03f026002d
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
<%# locals => f %> <div class="item reportable"> <%= f.label :reportable, "Report Item" %> <%= f.select :reportable, options_for_select( [[ "Select a Goal", "" ]] + Mg::Convert.all.map { |conv| [ conv.name, "#{conv.id}-#{conv.class}" ] }, f.object.reportable.nil? ? "" : "#{f.object.reportable_id}-#{f.object.reportable_type}" ), {}, :'data-varies' => 'change', :'data-varies-path' => get_extra_mg_report_items_url, :'data-varies-res' => '#extra' %> </div> <div id="extra"> <% if !f.object.nil? && !f.object.reportable.nil? %> <%= render :partial => 'mg/report_items/report_item_pivot_form', :locals => { :reportable => f.object.reportable }.merge( f.object.pivot.nil? ? {} : { :pivot => f.object.pivot } ) %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems