Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/redmine_glossary/app/views/glossary/import_csv.html.erb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations) (download)
Sun Mar 23 19:06:39 2014 UTC (10 years, 1 month ago) by myoshida
File size: 1428 byte(s)
Fix form unvisible. 
<% form_tag .. %>  =>  <%= form_tag .. %>
1 <h2><%=h l(:label_glossary_import_csv) %> </h2>
2
3
4 <%= form_tag({:controller => 'glossary', :action => 'import_csv_exec', :project_id=>@project},
5 {:multipart => true}) do %>
6
7 <%= l(:label_csv_file) %>
8 <%= file_field_tag 'import_file', :accept => 'text/csv', :size => '60%' %>
9 <br />
10 <br />
11 <% encs = l(:in_encoding_candidates)
12 if (encs and encs.is_a?(Array) and !encs.empty?)
13 enc_options = []
14 encs.each {|enc|
15 enc_options << enc
16 }
17 %>
18 <%=h l(:label_file_encoding) %>
19 <%= select_tag("in_encoding", options_for_select(enc_options)) %>
20 <br />
21 <% end %>
22
23 <label> <%= check_box_tag("is_first_comment", '1', true) %>
24 <%= l(:label_csv_import_is_first_comment) %> </label>
25 <br />
26
27 <br />
28
29 <%
30 name_options = []
31 options = [""]
32 for num in 1 ... 30
33 name_options << num
34 options << num
35 end
36 %>
37 <fieldset>
38 <legend><%= l(:label_import_items) %></legend>
39
40 <table>
41 <tr><th><%=h l(:label_item) %></th><th><%=h l(:label_column) %></th></tr>
42 <% CsvGlossaryImportInfo.default_param_cols {|prm, col| %>
43 <tr><td><%=h label_param(prm) %></td><td>
44 <%= select_tag("colno_#{prm}",
45 options_for_select((prm == 'name') ? name_options : options, col)) %>
46 </td></tr>
47 <% } %>
48 </table>
49 * <%=h l(:message_import_item) %>
50 </fieldset>
51 <br />
52
53 <%= submit_tag(l(:label_import)) %>
54 <% end %>
55
56 <% html_title(l(:glossary_title)) -%>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26