<%=h l(:label_glossary_import_csv) %>

<% form = form_tag({:controller => 'glossary', :action => 'import_csv_exec', :project_id=>@project}, {:multipart => true}) do %> <%= l(:label_csv_file) %> <%= file_field_tag 'import_file', :accept => 'text/csv', :size => '60%' %>

<% encs = l(:in_encoding_candidates) if (encs and encs.is_a?(Array) and !encs.empty?) enc_options = [] encs.each {|enc| enc_options << enc } %> <%=h l(:label_file_encoding) %> <%= select_tag("in_encoding", options_for_select(enc_options)) %>
<% end %>

<% name_options = [] options = [""] for num in 1 ... 30 name_options << num options << num end %>
<%= l(:label_import_items) %> <% CsvGlossaryImportInfo.default_param_cols {|prm, col| %> <% } %>
<%=h l(:label_item) %><%=h l(:label_column) %>
<%=h label_param(prm) %> <%= select_tag("colno_#{prm}", options_for_select((prm == 'name') ? name_options : options, col)) %>
* <%=h l(:message_import_item) %>

<%= submit_tag(l(:label_import)) %> <% end %> <%= form if Rails::VERSION::MAJOR >= 3 %> <% html_title(l(:glossary_title)) -%>