Sha256: 9505a491565e45cd2d6ee11bbff3c3f321c9f85f60518ad564020b8e4f8bac0d

Contents?: true

Size: 1.11 KB

Versions: 11

Compression:

Stored size: 1.11 KB

Contents

<% if current_user.directory.present? %>
  <div class="well">
    <%= render partial: 'generic_files/upload/tos_checkbox' %>
    <%= form_for @generic_file, url: sufia.generic_files_path, html: { class: 'form-horizontal well'} do |f| %>
      <table class="table table-striped">
        <caption>Select files to deposit from your user directory on the server.</caption>
        <thead>
          <tr><th>File</th></tr>
        </thead>
        <tbody>
        <%current_user.files.each do |f| %>
          <tr>
            <td>
              <label><%= check_box_tag 'local_file[]', f[:name] %> <%= f[:directory] ? '<i class="glyphicon glyphicon-folder-close"></i>'.html_safe : '<i class="glyphicon glyphicon-file"></i>'.html_safe %> <%= f[:name] %></label>
            </td>
          </tr>
        <%end%>
        </tbody>
      </table>
      <%= hidden_field_tag(:batch_id, @batch_id) %>
      <button type="submit" class="activate-submit btn btn-primary start" id="main_upload_start">
        <i class="glyphicon glyphicon-upload"></i>
        <span>Deposit Selected Files</span>
      </button>
    <% end %>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sufia-6.7.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.6.1 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.6.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.5.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.4.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.3.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.2.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.1.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.0.0 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.0.0.rc4 app/views/generic_files/upload/_local_file_import_chooser.html.erb
sufia-6.0.0.rc3 app/views/generic_files/upload/_local_file_import_chooser.html.erb