web/app/views/imports/show_text_import.html.erb
author Marcel Hlopko <marcel@hlopko.com>
Fri, 31 Oct 2014 17:50:24 +0100
changeset 249 d6e4f3690b6a
parent 106 eac4098d544d
permissions -rw-r--r--
Fix imports page, change json archive path

<%= currently_importing "text" %>

<%= form_for @text_import_query,
  url: text_imports_path,
  html: { class: "form-horizontal" } do |f| %>
  <fieldset>
    <legend>Paste text directly</legend>
    <div class="form-group">
      <%= f.label :text, "Text", class: "control-label col-sm-2" %>
      <div class="col-sm-10 col-md-6">
        <%= f.text_area :text, class: "form-control", size: "60x10" %>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <%= f.submit "Import", class: "btn btn-default" %>
      </div>
    </div>
  </fieldset>
<% end %>