Sha256: e24a52af6f073cd2ec16f7b3207c7d7d512a139331b69ec21137c2c1107c78fd
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 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 mb-3"> <%= f.label :table %> <%= f.text_field :table, class: "form-control" %> </div> <div class="form-group mb-3"> <%= f.label :description %> <%= f.text_area :description, placeholder: "Optional", style: "height: 60px;", class: "form-control" %> </div> <div class="form-group mb-3"> <%= 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finery-3.0.3 | app/views/blazer/uploads/_form.html.erb |
finery-3.0.2 | app/views/blazer/uploads/_form.html.erb |