<div id="bulk-actions" class="well">
  <h2>Bulk Actions</h2>
  <label>Mark As:</label>
  <% hints = [["Single Page", :''], ["Non-Paged", :"non-paged"], ["Facing pages",:"facing-pages"]] %>
  <% hints.each do |label, val| %>
    <div class="radio">
      <%= content_tag :label do %>
        <%= tag :input, name: "bulk_hint", id: "bulk_hint_#{val}", type: :radio, value: val, checked: false, class: 'resource-radio-button' %>
        <%= label %>
      <% end %>
    </div>
  <% end %>
  <% if @form.model.kind_of?(ScannedResource) %>
    <%= simple_form_for [main_app, :bulk_download, @form], html: { id: 'bulk_download_form', 'data-type': 'json', target: "_blank"}, method: :post do |f| %>
      <%= hidden_field_tag "file_sets[]", [] %>
      <%= f.submit "Download as Zip", class: 'btn btn-primary', data: { disable_with: false } %>
    <% end %>
  <% end %>
</div>

<div id="bulk-actions" class="well">
  <h2>Bulk Actions</h2>
  <label>Mark As:</label>
  <% hints = [["Single Page", :''], ["Non-Paged", :"non-paged"], ["Facing pages",:"facing-pages"]] %>
  <% hints.each do |label, val| %>
    <div class="radio">
      <%= content_tag :label do %>
        <%= tag :input, name: "bulk_hint", id: "bulk_hint_#{val}", type: :radio, value: val, checked: false, class: 'resource-radio-button' %>
        <%= label %>
      <% end %>
    </div>
  <% end %>
  <% if @form.model.instance_of?(ScannedResource) %>
    <%= simple_form_for [main_app, :bulk_download, @form], html: { id: 'bulk_download_form', 'data-type': 'json', target: "_blank"}, method: :post do |f| %>
      <%= hidden_field_tag "file_sets[]", [] %>
      <%= f.submit "Download as Zip", class: 'btn btn-primary', data: { disable_with: false } %>
    <% end %>
  <% end %>
</div>

Fix bulk download as Zip.
Fix bulk download as Zip.
