web/app/views/imports/show_file_import.html.erb
author Marcel Hlopko <marcel.hlopko@gmail.com>
Tue, 25 Jun 2013 22:11:10 +0200
changeset 106 eac4098d544d
parent 95 5336c148406a
child 249 d6e4f3690b6a
permissions -rw-r--r--
huge refactoring to better fit what we agreed on
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
67
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     1
<%= currently_importing "file" %>
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     2
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     3
<%= form_for @file_import_query,
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     4
  url: file_imports_path,
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     5
  builder: CalipelFormBuilder,
95
5336c148406a post imports page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 67
diff changeset
     6
  html: { multipart: true, class: "form-horizontal" } do |f| %>  
67
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     7
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     8
  <%= f.fieldset_item "Upload file with data" do %>
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     9
    <%= f.file_field_item :file %>
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    10
    <%= f.submit_item "Import" %>
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    11
  <% end %>
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    12
b02c889c1fb8 imports page fixes
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    13
<% end %>