Sha256: c964caf74cd4ca4087e8b121034d278f66167bb70bce7b0d45bf25eca5ab5875
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
<%= form_tag nil, :id => 'map_fields_form', :method => :post do -%> <% @mapper.params.each do |arr| -%> <%= hidden_field_tag arr[0], arr[1] %> <% end -%> <div class="map_fields"> <table cellspacing="0"> <thead> <tr> <% (0..@mapper.rows[0].size-1).each do |c| -%> <th><%= select_tag "mapped_fields[#{c}]", options_for_select(@mapper.fields_for_select, @mapper.selected_mapping(c)), :include_blank => true, :class => 'field_options' %></th> <% end -%> </tr> </thead> <tbody> <% @mapper.rows.each do |row| -%> <tr> <% row.each do |column| -%> <td><%= h(column) %></td> <% end -%> </tr> <% end -%> </tbody> </table> </div> <div class="option"> <%= check_box_tag 'mapped_fields[ignore_first_row]', '1', true, :id => 'ignore_first_row_option' %><label for="ignore_first_row_option">Ignore the first row (headings)</label> </div> <div class="action"> <%= submit_tag 'Import' %> </div> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
map_fields-2.0.0.beta2 | views/map_fields/_mapping.erb |