Sha256: 0d5a1751e375d9bf45627d7aa76bbd95c9ace0bf3b3b67a904e25de003a38e7f

Contents?: true

Size: 982 Bytes

Versions: 5

Compression:

Stored size: 982 Bytes

Contents

<% form_tag nil, :id => 'map_fields_form', :method => :post do -%>
  <% @parameters.each do |arr| -%>
    <%= hidden_field_tag arr[0], arr[1] %>
  <% end -%>
  <div class="map_fields">
    <table cellspacing="0">
      <thead>
        <tr>
          <% (1..@rows[0].size).each do |c| -%>
            <th><%= select_tag "fields[#{c}]", options_for_select(@fields), :include_blank => true, :class => 'field_options' %></th>
          <% end -%>
        </tr>
      </thead>
      <tbody>
        <% @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 '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

5 entries across 5 versions & 2 rubygems

Version Path
map_fields-1.0.4 views/map_fields/_map_fields.erb
map_fields-1.0.3 views/map_fields/_map_fields.erb
map_fields-1.0.2 views/map_fields/_map_fields.erb
map_fields-1.0.1 views/map_fields/_map_fields.erb
map-fields-1.0.0 views/map_fields/_map_fields.erb