mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 03:36:11 +01:00
first pass at csv import functionality for tracks
This commit is contained in:
parent
d093ba39bd
commit
3450c22e97
9 changed files with 144 additions and 4 deletions
11
app/views/data/csv_map.html.erb
Normal file
11
app/views/data/csv_map.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<h3>Map fields to be imported<h3>
|
||||
<%= form_tag csv_import_data_path do %>
|
||||
<% @labels.each do |l| %>
|
||||
<%= label_tag l %>:
|
||||
<%= select_tag(l, options_for_select(@headers) ) %>
|
||||
<br>
|
||||
<% end %>
|
||||
<%= hidden_field_tag :file, @path %>
|
||||
<%= hidden_field_tag :import_to, @import_to %>
|
||||
<%= submit_tag "Import" %>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue