Sha256: b9e315b107d74cd260f6727dc030e745750aca3a5f63c28cf798d793db72f097

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

<%= form_for(document, html: {class: "form", multipart: true}, remote: true) do |f| %>
    <%= hidden_field_tag :authenticity_token, form_authenticity_token %>
    <%= render "upload_document_tool/form_error", resource: document %>
    <div class="fileinput fileinput-new" data-provides="fileinput">
    <span class="btn btn-default btn-file">
      <span class="fileinput-new">Select file</span>
      <span class="fileinput-exists">Change</span>
      <%= f.file_field :file, required: true %>
    </span>
      <%= f.submit "Upload", class: "btn btn-success" %>
      <span class="fileinput-filename"></span>
      <a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">&times;</a>
    </div>
    <div class="form-group">
      <small id="file_help" class="form-text text-muted">Upload your file.</small>
      <div id="file_progress_bar" class="progress hidden">
        <div id="file_progress" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
        </div>
      </div>
    </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
upload_documents_tool-0.1.2 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.1 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.0 app/views/upload_documents_tool/_form.html.erb