Sha256: 5a4d5ea3c8a08dca43e5db86765dca0fd02a7c607ea4128a5e5b0f99cccdb8ef

Contents?: true

Size: 1.05 KB

Versions: 6

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_documents_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

6 entries across 6 versions & 1 rubygems

Version Path
upload_documents_tool-0.1.8 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.7 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.6 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.5 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.4 app/views/upload_documents_tool/_form.html.erb
upload_documents_tool-0.1.3 app/views/upload_documents_tool/_form.html.erb