Sha256: 5dc12a6e61d7e142ad35cb2883a6224738dccd6e63b2fd9810875e90d5ac5aed

Contents?: true

Size: 1.1 KB

Versions: 30

Compression:

Stored size: 1.1 KB

Contents

<%= form_for @upload, html: {class: "small-form"} do |f| %>
  <% if @upload.errors.any? %>
    <div class="alert alert-danger"><%= @upload.errors.full_messages.first %></div>
  <% elsif !@upload.persisted? %>
    <p>Create a database table from a CSV file. The table will be created in the <code><%= Blazer.settings["uploads"]["schema"] %></code> schema.</p>
  <% end %>

  <div class="form-group">
    <%= f.label :table %>
    <%= f.text_field :table, class: "form-control" %>
  </div>
  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description, placeholder: "Optional", style: "height: 60px;", class: "form-control" %>
  </div>
  <div class="form-group">
    <%= f.label :file %>
    <%= f.file_field :file, accept: "text/csv", style: "margin-top: 6px; margin-bottom: 21px;" %>
  </div>
  <p>
    <% if @upload.persisted? %>
      <%= link_to "Delete", upload_path(@upload), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger" %>
    <% end %>
    <%= f.submit "Save", class: "btn btn-success" %>
    <%= link_to "Back", :back, class: "btn btn-link" %>
  </p>
<% end %>

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
blazer-3.1.0 app/views/blazer/uploads/_form.html.erb
blazer-3.0.4 app/views/blazer/uploads/_form.html.erb
blazer_xlsx-3.0.8 app/views/blazer/uploads/_form.html.erb
blazer_xlsx-3.0.7 app/views/blazer/uploads/_form.html.erb
blazer_xlsx-3.0.6 app/views/blazer/uploads/_form.html.erb
blazer_xlsx-3.0.5 app/views/blazer/uploads/_form.html.erb
blazer-3.0.3 app/views/blazer/uploads/_form.html.erb
blazer-3.0.2 app/views/blazer/uploads/_form.html.erb
blazer-3.0.1 app/views/blazer/uploads/_form.html.erb
finery-3.0.1 app/views/blazer/uploads/_form.html.erb
finery-3.0.0 app/views/blazer/uploads/_form.html.erb
blazer-3.0.0 app/views/blazer/uploads/_form.html.erb
blazer-2.6.5 app/views/blazer/uploads/_form.html.erb
blazer-2.6.4 app/views/blazer/uploads/_form.html.erb
blazer-2.6.3 app/views/blazer/uploads/_form.html.erb
blazer-2.6.2 app/views/blazer/uploads/_form.html.erb
blazer-2.6.1 app/views/blazer/uploads/_form.html.erb
blazer-2.6.0 app/views/blazer/uploads/_form.html.erb
blazer-2.5.0 app/views/blazer/uploads/_form.html.erb
blazer-2.4.8 app/views/blazer/uploads/_form.html.erb