<%= f.fields :parameters, index: params[:index], on: { wrapper_all: false, label: false, placeholder: true }, css: { wrapper_input: 'two wide field' } do |pf| %> <%= pf.text_field :key %> <%= pf.select :value, options_for_select(TheData.config.mapping.keys), class: 'ui dropdown selection' %>
<%= link_to add_item_data_lists_path(index: params[:index].to_i + 1), remote: true do %> <% end %> <%= link_to remove_item_data_lists_path(index: params[:index].to_i), remote: true do %> <% end %>
<% end %>