Sha256: f71c836eeec9ab458f87206bce3811f33ec0ffee71050731bbe3452e76029d3f

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

<% title "SQL Editor" %>

<%= form_tag :sql_start_import, multipart: true do %>
  <h3>Import SQL File</h3>

  <div class='row'>
    <div class="large-11">
      <label>
        File
        <%= file_field_tag :file %>
      </label>
    </div>
  </div>

  <div class="row">
    <div class="large-11">
      <p><span class="radius secondary label">* <%= RailsDb::Adapters::BaseAdapter::MULTI_STATEMENT_HELP_TEXT %></span></p>
      <%= submit_tag raw("&rarr; Import"), class: 'button small' %>
      &nbsp;
      &mdash;
      &nbsp;
      <a href="#" data-reveal-id="sample_modal" id='sample_modal_link'><%= fa_icon('bars') %> Sample</a></span>
      <%= render 'import_sample' %>
    </div>
  </div>

  <% if @importer && @importer.result.ok? %>
    <div class='row'>
      <div class="large-11">
        <h4>Results</h4>
        <p>
          <span class="radius success label">File was successfully imported</span>
          <span class="radius info label">Time: <%= @importer.time %> seconds</span>
        </p>
      </div>
    </div>
  <% end %>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_db-0.2.1 app/views/rails_db/sql/import.html.erb