Translate

<%= submit_tag 'Export', form: "translate", onclick: "document.getElementById('translate').submit()" %>
<%= form_tag vaultify_export_path + '.csv', id: 'translate', method: 'post', multipart: true do %> <%= select_tag 'field', options_for_select(@fields.map {|f, v| [f, f]}), onchange: 'loadTable(this);' %> <% @fields.each do |field, api| %> <%= api %> <% @csv.each_with_index do |row, row_index| %> " onclick="openModal(this)"> <% end %>
Title Original Adjusted
<%= row['title'] %>
    <% unless row[field].nil? %> <% row[field].split(@mvs).each do |li| %>
  • <%= li %>
  • <% end %> <% end %>
    <% unless row["#{field}-adjusted"].nil? %> <% row["#{field}-adjusted"].split(@mvs).each_with_index do |li, li_index| %>
  • <%= li.split('url:').first %> <%= hidden_field_tag field + "[" + row_index.to_s + '][' + li_index.to_s + ']', li.split('url:').last, class: "url no-dis" %>
  • <% end %> <% end %>
<% end %> <% end %>


<%= render 'modal' %>