tracks/app/views/data/csv_map.html.erb

12 lines
323 B
Text
Raw Normal View History

<h3>Map fields to be imported<h3>
<%= form_tag csv_import_data_path do %>
<% @labels.each do |l| %>
2014-08-14 21:05:05 -05:00
<%= label_tag l %>:
<%= select_tag(l, options_for_select(@headers) ) %>
<br>
<% end %>
2013-09-16 11:37:16 +02:00
<%= hidden_field_tag :file, @filename %>
<%= hidden_field_tag :import_to, @import_to %>
2014-08-14 21:05:05 -05:00
<%= submit_tag "Import" %>
<% end %>